Create a React project with npm create vite@latest my-app -- --template react. Run npm install then npm run dev to start the dev server. Vite is fast and provides instant hot reloading when you save a file.
Setting Up React
Vite (recommended)
npm create vite@latest my-app -- --template react
cd my-app
npm install
npm run dev
Create React App
npx create-react-app my-app
cd my-app
npm start