GeoffSelby / cra-template-tailwindcss

A streamlined Tailwind CSS template for Create React App
38 stars 4 forks source link

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

Open tanujpatra228 opened 1 year ago

tanujpatra228 commented 1 year ago

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