React builds pages from components: functions that return markup and re-render when their state changes. Vite creates a ready-to-go project.
npm create vite@latest my-app -- --template react cd my-app && npm install && npm run dev // src/Counter.jsx import { useState } from "react"; export default function Counter() { const [count, setCount] = useState(0); return ( <button onClick={() => setCount(count + 1)}> Clicked {count} times </button> ); }