1. First initialize the npm in this project, if it runs successfully . a new folder .node_modules will be added .
npm init
2. Make sure your are in your project directory , where all the folders and files of project are present. If not run below command in cmd by - cd followed by project name without curly braces.
cd project_folder_name
npm start
import ReactDOM from "react-dom/client";
ReactDOM.createRoot(document.getElementById('root')).render(
<React.StrictMode>
<App />
</React.StrictMode>
)
import { render } from "react-dom";
render(<App />, document.getElementById("root"));