We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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.1.0 版本.
新版本主要修复了一些问题, 增强易用性.
随着新版本的试用与逐步稳定, 我们可以考虑迁移了.
首先需要看看上个月的官方文档: https://reactjs.org/blog/2022/03/29/react-v18.html
看正式发布的文章之前, 我们应该看看前文 如何升级到 React 18.
首先我们需要的是:
render
createRoot
unmountComponentAtNode
.unmount
hydrate
hydrateRoot
The text was updated successfully, but these errors were encountered:
No branches or pull requests
React 刚发布了 18.1.0 版本.
新版本主要修复了一些问题, 增强易用性.
随着新版本的试用与逐步稳定, 我们可以考虑迁移了.
首先需要看看上个月的官方文档: https://reactjs.org/blog/2022/03/29/react-v18.html
看正式发布的文章之前, 我们应该看看前文 如何升级到 React 18.
如何升级到 React 18 (How to Upgrade to React 18)
首先我们需要的是:
更新客户端渲染 API / Updates to Client Rendering APIs
render
函数. 需要使用createRoot
函数替换.unmountComponentAtNode
. 需要使用.unmount
方法替换.hydrate
函数. 需要使用hydrateRoot
函数替换.The text was updated successfully, but these errors were encountered: