Supports using Babel for Fast Refresh through the official Vite plugin
Provides ESLint configuration for type-aware linting with React-specific rules
Provides a minimal setup for React development with HMR (Hot Module Replacement) functionality
Supports using SWC as an alternative to Babel for Fast Refresh through Vite plugins
Enables TypeScript support for type-safe React development with proper type checking
Uses Vite as the build tool and development server with Fast Refresh capabilities
React + TypeScript + Vite
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
Expanding the ESLint configuration
If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
You can also install eslint-plugin-react-x and eslint-plugin-react-dom for React-specific lint rules: