This project provides a minimal setup to get React working with Vite, including Hot Module Replacement (HMR) and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh.
- @vitejs/plugin-react-swc uses SWC for Fast Refresh.
To create the project, run:
npm create vite@latest
To install the necessary dependencies, run:
npm install
To start the development server, run:
npm run dev
To build the project for production, run:
npm run build
To preview the production build locally, run:
npm run preview
To lint the project files, run:
npm run lint
[.eslintrc.cjs](http://_vscodecontentref_/1)
.gitignore
[index.html](http://_vscodecontentref_/2)
[package.json](http://_vscodecontentref_/3)
public/
[README.md](http://_vscodecontentref_/4)
src/
App.css
[App.jsx](http://_vscodecontentref_/5)
assets/
[index.css](http://_vscodecontentref_/6)
[main.jsx](http://_vscodecontentref_/7)
[SayHello.jsx](http://_vscodecontentref_/8)
[Tweet.jsx](http://_vscodecontentref_/9)
[TweetForm.jsx](http://_vscodecontentref_/10)
[TweetList.jsx](http://_vscodecontentref_/11)
[vite.config.js](http://_vscodecontentref_/12)