scalajs-react
scalajs-react copied to clipboard
React 18
- [x] (hook)
startTransition - [x] (hook)
useDeferredValue - [x] (hook)
useId - [x] (hook)
useInsertionEffect - [x] (hook)
useSyncExternalStore - [x] (hook)
useTransition - [x] (
react-dom/client)createRoot - [x] (
react-dom/client)hydrateRoot - [ ] (
react-dom/server)renderToPipeableStream - [ ] (
react-dom/server)renderToReadableStream - [x]
ReactDOM.renderis no longer supported in React 18. UsecreateRootinstead. Until you switch to the new API, your app will behave as if it’s running React 17. Learn more: https://reactjs.org/link/switch-to-createroot - [x] if your app uses server-side rendering with hydration, upgrade
hydratetohydrateRoot - [x] We’ve also changed
unmountComponentAtNodetoroot.unmount - [x] We’ve also removed the callback from
render - [x]
react-dom:ReactDOM.hydratehas been deprecated. Using it will warn and run your app in React 17 mode. - [x]
react-dom:ReactDOM.renderhas been deprecated. Using it will warn and run your app in React 17 mode. - [ ]
react-dom:ReactDOM.renderSubtreeIntoContainerhas been deprecated. - [ ]
react-dom:ReactDOM.unmountComponentAtNodehas been deprecated. - [ ]
react-dom/server:ReactDOMServer.renderToNodeStreamhas been deprecated. - [ ]
renderToNodeStreamis deprecated - [ ]
renderToStaticNodeStreamexists apparently - [x] set
globalThis.IS_REACT_ACT_ENVIRONMENTtotruebefore running your test - [ ] Components can now render
undefined - [x] Deprecate
renderIntoDOM - [ ] Add a
callbackattr (?) - [ ] Deprecate Mounted component types
- [ ] Add a downstream-test to check React 17 still works
Doc:
- https://reactjs.org/blog/2022/03/08/react-18-upgrade-guide.html
- https://reactjs.org/blog/2022/03/29/react-v18.html
React 18.2.0 is out
https://github.com/facebook/react/blob/main/CHANGELOG.md#1820-june-14-2022