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

ReactDOM.render is no longer supported in React 18 #3

Closed
aviralrabbit1 opened this issue Sep 12, 2023 · 1 comment
Closed

ReactDOM.render is no longer supported in React 18 #3

aviralrabbit1 opened this issue Sep 12, 2023 · 1 comment

Comments

@aviralrabbit1
Copy link
Owner

react-dom.development.js:73 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

@aviralrabbit1
Copy link
Owner Author

Solved with putting the following in index.html:

<body>
    <div id="app">
    </div>
    ...
    <script crossorigin src="https://unpkg.com/react@17/umd/react.development.js"></script>
    <script crossorigin src="https://unpkg.com/react-dom@17/umd/react-dom.development.js"></script>
    ...
</body>

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

1 participant