Preqrequisites:

node -v
npm -v

Create a React App

1. Create React App (CRA)

2. Vite

3. Next.js (for SSR / SSG / Fullstack)


Folder Structure (Vite Example)

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