I convinced my class at Tech Talent South to use Vite instead of create-react-app. These are some notes I wrote to help my instructor, TA, and classmates start using Vite.
Single command quick start (Windows)
(These instructions may work for non-Windows computers, but it didn't work for at least one of my classmates who used Linux. You can always look at the official Vite documentation for more details.)
Run
npm init vite@latest my-vue-app -- --template react
Navigate to your project and install dependencies via
cd my-vue-app
npm i
Run your app with
npm run dev
For more info, check out the docs or Evan You's 14 minute demo video.
Multiple command quick start
Run
npm init vite@latest
and select the options you want.
Links
Notes
๐Replacing create-react-app with Vite๐
Tips:
- Use
.jsxfiles instead of.jsfiles unless you're writing pure JavaScript.
Banner source: ๐ฅ ใใ
ใใใใใ / ใใใ feat.ๅฏไธ๏ผKyu-kurarin / Iyowa feat.Kafu๏ผ
Article source: ๐๐ฑ Ai-Yukino/dev.to
Top comments (1)
damn moving to vite.js + react a lot of problems and incompatibilities