Quick Answer
Run npm create vite@latest, pick the React template, install with npm install, and start the dev server. You'll have a live React app with hot reload in about a minute. Then edit App.jsx, split the page into components, pass data with props, and add interactivity with the useState hook. This guide covers the setup and first real code.
Why Vite instead of Create React App
Step 1: Create the project
Step 2: Install and run
Step 3: Understand the files
Step 4: Build your first component
Step 5: Add state with useState
Scrimba
Want to learn React by writing code?
Scrimba's React course lets you pause the video and edit the instructor's code right in the lesson. It's an interactive way to build on your first Vite app and get comfortable with components, props, and state. Free to start.
Learn React on ScrimbaThis is an outbound link. We are not in this platform's affiliate program and earn nothing if you sign up. We only recommend platforms we rate.
FAQ