Preguntes Freqüents - FAQ

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 install

2. Start the development server

npm run dev

Open 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 build

The optimised static files appear in the dist/ folder — upload them to any web host or serve with Nginx.

Ha estat útil la resposta?

0 Els usuaris han Trobat Això Útil

Powered by WHMCompleteSolution