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

findDOMNode is deprecated and will be removed 【ant-mobile 5.35.0】 #6715

Open
xumaoyanxumaoyan opened this issue Aug 13, 2024 · 2 comments
Labels

Comments

@xumaoyanxumaoyan
Copy link

Version of antd-mobile

5.35.0

Operating system and its version

Android

Browser and its version

No response

Sandbox to reproduce

No response

What happened?

react-dom.development.js:86 Warning: findDOMNode is deprecated and will be removed in the next major release. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here

Relevant log output

No response

@xumaoyanxumaoyan
Copy link
Author

use this dependencies can resolve that warning :"react": "18.2.0",
"react-dom": "18.2.0",
"react-router": "^6.26.0",
"react-router-dom": "6.21.0",

don't use "^18.2.0"

@xumaoyanxumaoyan
Copy link
Author

"@types/react": "18.2.0",
"@types/react-dom": "18.2.0",

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

No branches or pull requests

1 participant