Put in order · JavaScript and React course · Module 1: React Basics
Process: Installing React
Arrange the React installation process from scratch:
Items to put in order
- Install Node.js and npm (if needed)
- Check Node.js version (node --version)
- Navigate to the project folder and install dependencies (cd my-app, npm install)
- Create a project (npm create vite@latest my-app -- --template react)
- Start the development server (npm run dev)
Show the answer
Correct order:
- Check Node.js version (node --version)
- Install Node.js and npm (if needed)
- Create a project (npm create vite@latest my-app -- --template react)
- Navigate to the project folder and install dependencies (cd my-app, npm install)
- Start the development server (npm run dev)