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 #5044

Closed
awmleer opened this issue Apr 8, 2022 · 7 comments · Fixed by #5046
Closed

支持 React 18 #5044

awmleer opened this issue Apr 8, 2022 · 7 comments · Fixed by #5046
Labels

Comments

@awmleer
Copy link
Member

awmleer commented Apr 8, 2022

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 安装时将不会再遇到报错

@awmleer
Copy link
Member Author

awmleer commented Apr 20, 2022

facebook/react#24347

@329639010
Copy link

无法安装mobile,不兼容18

@xiaohaoo
Copy link

大约什么时候发布适配React 18呢

@awmleer
Copy link
Member Author

awmleer commented Apr 29, 2022

PR 还在调整中,估计快了 #5046

@Louis-Has
Copy link

关注一下

@awmleer awmleer unpinned this issue May 10, 2022
@dingyanhe
Copy link

请问2.3.2版本有计划支持react18嘛

@awmleer
Copy link
Member Author

awmleer commented Jun 13, 2022

请问2.3.2版本有计划支持react18嘛

没有

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

Successfully merging a pull request may close this issue.

5 participants