EdgeOne Logo
Back to Templates

Vite React

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

View Demo
FrameworkReact.js
Use CaseStarter
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

React + TypeScript + Vite Template

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

While this project uses Vue.js, Vite supports many popular JS frameworks. See all the supported frameworks.

Vite Configuration Reference

Local Development

Project Setup

npm install

Compile and Hot-Reload for Development

npm run dev
# Open http://localhost:5173 with your browser to see the result.

Compile and Minify for Production

npm run build
# The build artifacts will be stored in the `build/` directory.