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
If you are developing a production application, we recommend using TypeScript and enable type-aware lint rules. Check out the TS template to integrate TypeScript and typescript-eslint in your project.
REACT_APP_DEV_TOOLS=true VITE_YOUTUBE_API_KEY="Add your Api Key" VITE_YOUTUBE_BASE_URL=https://www.googleapis.com/youtube/v3