|
Last change
on this file since 3ebe47c was 72053b5, checked in by Andrej <asumanovski@…>, 5 months ago |
|
first commit
|
-
Property mode
set to
100644
|
|
File size:
1.1 KB
|
| Line | |
|---|
| 1 | # React + Vite
|
|---|
| 2 |
|
|---|
| 3 | This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
|
|---|
| 4 |
|
|---|
| 5 | Currently, two official plugins are available:
|
|---|
| 6 |
|
|---|
| 7 | - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) (or [oxc](https://oxc.rs) when used in [rolldown-vite](https://vite.dev/guide/rolldown)) for Fast Refresh
|
|---|
| 8 | - [@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
|
|---|
| 9 |
|
|---|
| 10 | ## React Compiler
|
|---|
| 11 |
|
|---|
| 12 | The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation).
|
|---|
| 13 |
|
|---|
| 14 | ## Expanding the ESLint configuration
|
|---|
| 15 |
|
|---|
| 16 | If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the [TS template](https://github.com/vitejs/vite/tree/main/packages/create-vite/template-react-ts) for information on how to integrate TypeScript and [`typescript-eslint`](https://typescript-eslint.io) in your project.
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.