How to Create Your First React App
React is a popular JavaScript library for building user interfaces. This guide uses Vite, the modern, fast toolchain. Node.js must be installed first.
1. Create a new React project with Vite
npm create vite@latest my-app -- --template react
cd my-app
npm install2. Start the development server
npm run devOpen the printed URL (usually http://localhost:5173) to see your app with hot reload.
3. Edit your first component
// src/App.jsx
function App() {
return <h1>Hello, Cloudesta!</h1>;
}
export default App;4. Build for production
npm run buildThe optimised static files appear in the dist/ folder — upload them to any web host or serve with Nginx.