Just switched a large project from create-react-app to Vite
Just switched a large project from create-react-app to Vite.
With create-react-app:
start: 25 sec
Hot reload: 2.8 sec
With Vite:
start: 2 sec 🔥
Hot reload: Instant
A solid DX improvement, and simple to convert.
If you're using CRA, consider converting!
#react
Also, here are my notes on why Vite is preferable to create-react-app, and the key things you need to change to migrate to Vite: https://github.com/coryhouse/reactjsconsulting/issues/139
I should add: I only recommend using Vite if you’re currently using create-react-app.
Why? Because it’s easy to migrate to Vite.
If you’re building a new React app in 2023, you should probably use a framework like Next or Remix so routing, SSR, BFF, etc are included.