boardgameio/boardgame.io

React v19?

Closed this issue · 2 comments

Are there any plans to upgrade to react v19? I've tried to follow the tutorial, but I'm getting the error 'App' cannot be used as a JSX component., which I suspect is because create-react-app installs a newer version of react than boadgame.io supports.

My react chops are pretty rusty but I'd be willing to have a crack at it if that's something that would be desired?

As far as I know people are currently sorting out how this project should be maintained, so don't expect definitive answers in the near future. Apart from that I would absolutely advise against using create-react-app. It has more or less been deprecated. Use vite instead.

Furthermore you can just npm/yarn/pnpm/whatever install the correct react version for boardgame.io. No need to use react 19 right now.

Alternatively you could just copy boardgame.io's react component code to your project and change the implementation such that it's compatible with react 19. (again, because I assume that a merge of the update in the near future is rather unlikely). Of course if you update the react client a merge request would probably still be useful, but that is for the maintainers to decide :)

I'm currently working on modernizing a lot of boardgame.io. It's just slow moving as 2025 has been a bit of a wrecking ball personally 😅

Part of that will be extracting the react bits out of the main project in an effort to make it more framework agnostic.

All that to say is that AFAIK there's no plans to upgrade react specifically at this time.