-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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 #5044
Labels
Comments
This was referenced Apr 8, 2022
Merged
This was referenced Apr 12, 2022
无法安装mobile,不兼容18 |
大约什么时候发布适配React 18呢 |
PR 还在调整中,估计快了 #5046 |
关注一下 |
请问2.3.2版本有计划支持react18嘛 |
没有 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version of antd-mobile
5.10.0
Description
一些项目已经开始升级到 React 18 了,而新创建的项目(特别是 create-react-app 创建的)应该已经默认是 React 18 了,所以 antd-mobile 也需要着手对 React 18 进行一些适配改造
How to Upgrade to React 18
React v18.0
当前阶段的支持只能是确保在 React 18 环境下正常的运行,但还是不能在 antd-mobile 中依赖任何 React 18 新增的特性(除非进行了特殊的环境判断并且有 fallback 逻辑),在我们基本确保了在 React 18 下兼容性是正常的之后,会把 package.json 中的
peerDependencies
进行调整,用户在 npm 或 yarn 安装时将不会再遇到报错The text was updated successfully, but these errors were encountered: