pixijs / pixi-react

Write PIXI apps using React declarative style
https://pixijs.io/pixi-react/
MIT License
2.42k stars 180 forks source link

Update to support React 18 #358

Closed baseten closed 1 year ago

baseten commented 1 year ago

Description: This PR bumps React to v18 and the React Reconciler to the latest version, updating hostConfig accordingly. It also fixes unit tests which broke as a result of this change.

This is a solution to support v18 only and makes no changes/additions to docs, which will require an overhaul to support v18 - most likely replacing docz with a combination of docusaurus and storybook to be carried out on a separate PR.

Related issue (if exists): https://github.com/pixijs/pixi-react/issues/337