Lesson 4 - Create and Run a React Project with Vite - Full Overview
React Dev Site
visit https://react.dev/ and click Learn React ( https://react.dev/learn)
go to installation menu (https://react.dev/learn/installation) and in this chapter session, click "How to start a new React project"
Vite
go to vite.dev site and click get started (https://vite.dev/guide/).
Vite requires Node.js version 18+ or 20+.
Open Bash/PowerShell terminal and create your working directory, ie. "react-sandbox". Change the directory to "react-sandbox" and install vite latest version.
S npm create vite@latest
Then follow the prompts!
Project name: react-hook-state-management
Select a framework: > React
Select a variant: > JavaScript
Change the directory to "react-hook-state-management". And then install and run.
cd react-hook-state-management
npm install
npm run dev
Click : http://localhost:5173
Last updated