Closed WenxuC closed 1 year ago
Fixed it by moving the root to the app.js folder, although this is improper. Try to find a way to keep it inside index.js file
const root = ReactDOM.createRoot(document.getElementById('root'));
to const root = ReactDOM.createRoot(document.getElementById('app'));
Changing root to app solved the issue
I suspect that it has something to do with index.js and app.js