3 ms·
I guess it is a good thing that they are now clear about the state of create-react-app. I used it about a year ago because it was still recommended on the React
by captainmuon 2y ago
I guess it is a good thing that they are now clear about the state of create-react-app. I used it about a year ago because it was still recommended on the React page, and got a lot of deprecation warings. After a lot of googling I realized that people now recommend vite, so that is what I went with (thinking popular = more likely to be supported in future and having more information on the net).
But TBH I'm not really happy with vite. It seems to be made with a big flagship SPA in mind. If you just want one page, or if you want to include some react in a plain website, it is overkill. It creates dozens of files with potentially hundreds of configuration options. I guess this is typical for the entire JS ecosystem. But sometimes I wish the stuff around React was simpler and more opinionated: Just throw the .tsx files in src, run reactc, and include the output script in your HTML. Maybe add a flag to watch for code changes / hot reload.