项目创建 一 .使用vite 创建项目 # npm create vite@latest my-app -- --template react-ts // 不需要ts # npm 6.x npm init @vitejs/app my-react-app --template react # npm 7+, 需要额外的双横线: npm init @vitejs/app my-reactapp -- --template react # yarn