Loading tutorials
import and export), have written a basic React component, and can use a terminal. You don't need Vite installed yet. Later chapters scaffold a project.2 min readnpm create vite@latest my-app -- --template react, can read basic JSX, and know what an ES module is. Here you will learn what each generated file does, so you know where to make changes.2 min readnpm run dev. It also assumes you know ES modules (import and export) and what a component is. It follows the order the browser uses: HTML first, then the script, then React.2 min readnpm create vite@latest, run npm install, and have Node.js and npm working. Here you start the dev server, see what it does, and learn how hot updates behave, including when they fail.2 min readuseState are. Here you will replace the starter content with your own component and watch hot module replacement (HMR) update the page.2 min readnpm run dev, and that you know what package.json scripts are. It covers what the build produces, how to check it locally, and the errors people commonly hit.2 min readnpm run dev, and know what package.json and src/main.jsx do. Here you will read vite.config.js and change a few common options.2 min readnpm run dev and npm run build, and read a vite.config.js file. It covers how Vite exposes configuration values to your React code and why that is not a safe place for secrets.2 min readnpm run build. It covers where a Vite single-page app fits among other ways to start a React project, and how to choose.2 min read