node -v
npm -v
Classic method, sets up everything for you.
npx create-react-app my-app
cd my-app
npm start
# Default starts a dev server at <http://localhost:3000>
Fast, modern, lightweight bundler
npm create vite@latest my-app
# Project name → my-app
# Framework → React
# Variant → JavaScript or TypeScript
cd my-app
npm install
npm run dev
# Default runs dev server → <http://localhost:5173>
Use if you plan SSR / SSG.
npx create-next-app@latest my-app
cd my-app
npm run dev
my-app/
├─ public/ # static files (index.html, images)
├─ src/
│ ├─ main.jsx # app entry
│ ├─ App.jsx # main component
│ ├─ assets/ # images, icons, etc
│ ├─ components/ # reusable components
│ ├─ pages/ # if using routing
│ ├─ lib/ # set the tools/middleware
│ ├─ config/ # set the constant/config
│ └─ styles/ # css/scss
├─ package.json
└─ vite.config.js