Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React 18 #1057

Open
13 of 27 tasks
japgolly opened this issue Apr 11, 2022 · 1 comment
Open
13 of 27 tasks

React 18 #1057

japgolly opened this issue Apr 11, 2022 · 1 comment

Comments

@japgolly
Copy link
Owner

japgolly commented Apr 11, 2022

  • (hook) startTransition
  • (hook) useDeferredValue
  • (hook) useId
  • (hook) useInsertionEffect
  • (hook) useSyncExternalStore
  • (hook) useTransition
  • (react-dom/client) createRoot
  • (react-dom/client) hydrateRoot
  • (react-dom/server) renderToPipeableStream
  • (react-dom/server) renderToReadableStream
  • ReactDOM.render is no longer supported in React 18. Use createRoot instead. 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
  • if your app uses server-side rendering with hydration, upgrade hydrate to hydrateRoot
  • We’ve also changed unmountComponentAtNode to root.unmount
  • We’ve also removed the callback from render
  • react-dom: ReactDOM.hydrate has been deprecated. Using it will warn and run your app in React 17 mode.
  • react-dom: ReactDOM.render has been deprecated. Using it will warn and run your app in React 17 mode.
  • react-dom: ReactDOM.renderSubtreeIntoContainer has been deprecated.
  • react-dom: ReactDOM.unmountComponentAtNode has been deprecated.
  • react-dom/server: ReactDOMServer.renderToNodeStream has been deprecated.
  • renderToNodeStream is deprecated
  • renderToStaticNodeStream exists apparently
  • set globalThis.IS_REACT_ACT_ENVIRONMENT to true before running your test
  • Components can now render undefined
  • Deprecate renderIntoDOM
  • Add a callback attr (?)
  • Deprecate Mounted component types
  • Add a downstream-test to check React 17 still works

Doc:

@japgolly
Copy link
Owner Author

React 18.2.0 is out

https://github.com/facebook/react/blob/main/CHANGELOG.md#1820-june-14-2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant