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

Open
tanujpatra228 opened this issue Mar 13, 2023 · 0 comments
Open

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

tanujpatra228 opened this issue Mar 13, 2023 · 0 comments

Comments

@tanujpatra228
Copy link

The code in index.js currently uses ReactDOM.render, which is no longer supported in React 18. To resolve this issue, a root element should be created using ReactDOM.createRoot before rendering the App component. Additionally, it is now necessary to import ReactDOM from react-dom/client instead of react-dom. Please refer to the attached index.js file for the necessary updates.

index.zip

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