vite react
xxxxxxxxxx
npm create vite@latest my-react-app -- --template react
xxxxxxxxxx
# npm 6.x
npm create vite@latest my-react-app --template react
# npm 7+, extra double-dash is needed:
npm create vite@latest my-react-app -- --template react
# yarn
yarn create vite my-react-app --template react
# pnpm
pnpm create vite my-react-app -- --template react
create react project with vite
xxxxxxxxxx
npm create vite@latest my-project -- --template react
xxxxxxxxxx
npx create-vite your-project-name --template react
cd your-project-name
cd your-project-name && npm i && npm run dev
vite react
xxxxxxxxxx
# npm 6.x
npm create vite@latest my-vue-app --template vue
# npm 7+, extra double-dash is needed:
npm create vite@latest my-vue-app -- --template vue
# yarn
yarn create vite my-vue-app --template vue
# pnpm
pnpm create vite my-vue-app --template vue
See create-vite for more details on each supported template: vanilla, vanilla-ts, vue, vue-ts, react, react-ts, react-swc, react-swc-ts, preact, preact-ts, lit, lit-ts, svelte, svelte-ts