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

Warning React 18 ReactDOM.render #361

Closed
Russo-creation opened this issue Jul 24, 2022 · 1 comment
Closed

Warning React 18 ReactDOM.render #361

Russo-creation opened this issue Jul 24, 2022 · 1 comment

Comments

@Russo-creation
Copy link

Hi,

I'm using release 18 of react (below short list of the dependencies using in the project):

    "leva": "^0.9.29",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "react-scripts": "5.0.1",

I receive warning in the console after adding leva useControls in the component (below print from console):

Warning: 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
@dbismut
Copy link
Collaborator

dbismut commented Jul 25, 2022

Duplicate of #358

@dbismut dbismut closed this as completed Jul 25, 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

2 participants