# Install dependencies (only the first time)
npm install
# Run the local server at localhost:8080
npm run dev
# Build for production in the dist/ directory
npm run buildnpm create vite@latestCreate with:
npm init -yAdd react
npm install react@18 react-dom@18.2 react-scripts@5.0Add inital scripts:
"dev": "react-scripts start",
"build": "react-scripts build",
Create a public folder
Create a basic index.html file
Add a div tag to be targeted by react
<div id="root"></div>
Create a src folder
Create a basic index.js file
Render root with react-dom.