DEV Community

Cover image for Create React App is Dead?

Create React App is Dead?

Vinit Gupta on November 23, 2022

Have you used create-react-app? Probably EVERYTIME you have created a React application. Well, there are a few problems with using it. As is with ...
Collapse
 
brense profile image
Rense Bakker

Not to mention the webpack version used by CRA has a bunch of critical vulnerabilities and even the latest webpack has major security problems. Not the best platform to use for building anymore considering all the alternatives we have now. Vite is awesome :)

Collapse
 
hidaytrahman profile image
Hidayt Rahman

Thats why I don't like webpack

Collapse
 
thevinitgupta profile image
Vinit Gupta

I agree
Having a better options always helps
Also, you can checkout NextJS if you're working with a full stack application in mind

Collapse
 
brense profile image
Rense Bakker

Nextjs still uses webpack I think. There's a vite alternative called Rakkas, but it's not fully mature yet last time I checked.

Thread Thread
 
ivan_jrmc profile image
Ivan Jeremic

Nextjs uses Turbopack now I think.

Thread Thread
 
brense profile image
Rense Bakker

Not by default I think, but both are owned by vercel now, so maybe soon. Turbopack is too much of a continuation of webpack imho. I think other build tools like vite will win.

Thread Thread
 
ivan_jrmc profile image
Ivan Jeremic • Edited

Yes they said that turbopack is here to replace webpack, vite can't win on it's own vite already talks to the turbopack team from what I heard and turbopack will most likely be an option inside vite as rollup replacement.

Thread Thread
 
brense profile image
Rense Bakker

chariotsolutions.com/blog/post/tur...

twitter.com/youyuxi/status/1585040...

I dont see anything about Vite wanting to replace rollup with turbopack. I just see him talking about maybe using a different technique for HMR in the future (SWC/rust-based instead of Babel). Rollup has nothing to do with that choice.

Thread Thread
 
ivan_jrmc profile image
Ivan Jeremic

Not he but on one of turbopacks videos they said that they talk to the vite team, and Evan himself said he wished someone would one day rewrite rollup in rust, now its not rollup but however you can then switch from rollup to turbo and others which makes sense.

Thread Thread
 
brense profile image
Rense Bakker

Maybe I missed it, but I haven't heard anyone questioning Rollup before and I'm not finding anything comparing rollup with turbopack.

Thread Thread
 
ivan_jrmc profile image
Ivan Jeremic • Edited

1.Even questioned rollup it's on youtube. 2. Nobody is comparing the two just saying that vite most likely will support multiple bundlers.

Thread Thread
 
brense profile image
Rense Bakker

I only heard Evan question babel for HMR. Do you have a link? It doesn't make sense to support multiple bundlers if one doesn't offer anything that the other doesn't. There has to be a reason.

Thread Thread
 
ivan_jrmc profile image
Ivan Jeremic • Edited

There is a video where he says he wishes someone would rebuild rollup in rust. Maybe I search it for you when I have time.

Collapse
 
rxliuli profile image
rxliuli • Edited

I also created a vscode plugin to create vite projects like you do when using webstorm
marketplace.visualstudio.com/items...

Image description

Collapse
 
jd2r profile image
DR

As someone who is relatively new to React, this is super helpful. I always shied away from using it because CRA took so long to install packages and such. It's great to know there are alternatives.

And yes, a series on Next would be immensely helpful. I'm trying to learn it at the moment and it's not making much sense :P

Collapse
 
samantrags profile image
Raghavendra Samant
Collapse
 
whatthehanan profile image
Hanan Hamza

haha, i thought the same thing