Skip to content
techsnow

Introduction

Setting Up a Project

You need Node.js installed. Then create a project with Vite, a fast build tool:

npm create vite@latest my-app -- --template react
cd my-app
npm install
npm run dev

Open the address it prints (usually http://localhost:5173). Edit src/App.jsx and the page updates instantly.

Project structure

FilePurpose
index.htmlThe single HTML page
src/main.jsxStarts React and renders <App /> into the page
src/App.jsxYour root component
package.jsonProject info and dependencies