This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
Testing setup using Jest + React Testing library
-
npm install --save-dev jest babel-jest @babel/preset-env @babel/preset-react react-test-renderer
-
@vitejs/plugin-react uses Babel for Fast Refresh
-
@vitejs/plugin-react-swc uses SWC for Fast Refresh