yarn create vite react-vite --template react
cd react-vite
yarn
yarn dev
yarn build
yarn add react-router-dom
# npm create vite@latest react-vite --template react
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
npx create-react-app react-jike
cd react-jike
npm start