Skip to main content
D
React
React Setup

React Setup

React requires a quick project setup to get started.

Read Time
5 min read
Difficulty
Beginner
Last Updated
Jun 15, 2026
Version
v1.0.0

Introduction

Developers do not usually write React directly in a standard HTML file. Instead, they use a tool like Vite or Next.js to generate a complete React project folder automatically. This sets up all the necessary files instantly.

Syntax

Syntax
1/* terminal commands */
2npm create vite@latest my-app -- --template react
3cd my-app
4npm install
5npm run dev

Key Points

  • Vite is the modern, fast way to build React apps.
  • Next.js is the popular choice for full-stack React.
  • Create React App is no longer recommended.
  • The `npm run dev` command starts a local server.

Up Next

Continue your journey with the next topic.

Go to React JSX