Lesson 10 of 10
Build & Deploy a React App
Create React App and Vite are tools that set up a React project with one command. Vite is faster and more modern. After building, you get static files you can upload to any web host.
Use npm run build to create an optimized production version of your app.
REACT
# Create a React app with Vite
npm create vite@latest my-app -- --template react
# Navigate and install dependencies
cd my-app
npm install
# Start development server
npm run dev
# Build for production
npm run build