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 uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
This example is done following the Odin Project. The purpose is to demonstrate the usage of a React router.
To set up the React template in a GitHub repo, cd into the repo and enter: npm create vite@latest . -- --template react
To run: npm run dev