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:

  1. Check Node.js version (node --version)
  2. Install Node.js and npm (if needed)
  3. Create a project (npm create vite@latest my-app -- --template react)
  4. Navigate to the project folder and install dependencies (cd my-app, npm install)
  5. Start the development server (npm run dev)