Closed limonte closed 2 years ago
@zenflow I'd be great to get your feedback on this PR, thank you in advance! 🙏
@zenflow I'll go ahead and release this change, but if you have any feedback please leave it and I'll fix that separately, thanks!
:tada: This PR is included in version 5.0.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
REACT 18 SUPPORT 🎉
React 18 is now available: https://reactjs.org/blog/2022/03/29/react-v18.html
This PR enables support for React 18 and disables support for earlier versions (16 and 17), so this is the breaking change and the new major will be released.
From the technical side, there are only changes with the new rendering API
ReactDOM.createRoot()
. Everything else is the same.One detail worth mentioning is this one:
Without
setTimeout
we can't guarantee that everything will be rendered indidOpen
callback.The What about the render callback? chapter in https://github.com/reactwg/react-18/discussions/5 explains why
setTimeout
is needed:Other changes
yarn dev
)jest
toCypress
, which enables great abilities to visually see and debug tests (yarn cypress:open
). All the tests are the same as before.