Why I choose CRA instead of Vite ?
Recently I was confronted to make a decision of whether to go with CRA (create-react-app) or Vite for a new project we had to start from scratch. I choose CRA, even though I love Vite. Does that mean I ditched Vite for CDA ? Gone back to my ex-love ?
Nope, and that’s the focal point of this post. You see Vite is lighting fast, it’s super awesome. Most React developers in the front-end universe never go back to CRA once they taste Vite. But, not me at least in this case. You see I had to collaborate with interns and junior developers. There was more help available for CRA in regards to installation of new packages, deployment of production build and many other topics related to React. The application wasn’t that big per say and is supposed to be completed within 2 months.
I’d have gone with Vite had it been an application which was supposed to live longer. But, in this case, requirements where well defined and are not likely to change in the long run. So I went with CRA.
I believe just because there is an awesome upgrade available in the tech world, does not mean you should blindly follow the crowd and integrate it with your project or start a new project using it. Sometimes, we’re better off in sticking with the older tech stack.