This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
## 前端编辑方式
Currently, two official plugins are available:
### 修改方式
-[@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) for Fast Refresh
-[@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
使用 npm run dev 即可实时跟随修改。
## Expanding the ESLint configuration
主要逻辑在 App.tsx 当中。
If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
如果需要修改逻辑,直接改正 App.tsx 的各个部分即可。
```js
### 打包方式
exportdefaulttseslint.config({
extends:[
调用 npm run build 即可打包。
// Remove ...tseslint.configs.recommended and replace with this
You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules: