src\index.js
Line 9:1: 'root' is not defined no-undef

Search for the keywords to learn more about each error.
ERROR in src\index.js
Line 9:1: 'root' is not defined no-undef

Search for the keywords to learn more about each error.

webpack compiled with 1
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';



// ReactDOM.createRoot(document.getElementById('root'));
// root.render(
// <React.StrictMode>
// <App />
// </React.StrictMode>
// );
改为
ReactDOM.render(<App />,document.getElementById('root'));