React TutorialLesson 3Free preview
React Get Started
This lesson is part of React · All levels
Summary
To start writing React, you need Node.js and npm as its package manager. The easiest way is to create a new project with a tool like Vite, and then run the development server through npm run dev. Another alternative, React can be tried directly via a CDN without a build process for short experiments.
Key points
- Install Node.js to make npm available to manage dependencies
- Create a new project with npm create vite@latest and then select the React template
- Npm install downloads dependencies to the node_modules folder
- The development server provides hot reload when the file is changed
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.