DEV Community

Discussion on: This is why everyone is using Reactjs

Collapse
 
jesperhoy profile image
Jesper Høy

I respectfully disagree.

Your reasons are mostly technical - and 5+ years ago, those may have been the reasons people choose React.

But today, there are far better alternatives available - from a technical perspective.

I think today the popularity of React is simply self fueling - many user, components, jobs -> more users, components, jobs -> … etc.

From a developer perspective - I think the initial fascination with React is that you can author your UI basically as a function that returns HTML - with no regard for how that HTML is later updated - you simply re-render the whole thing again and again on any and every update (and let React do the hard work to reconsile DOM etc. behind the scenes).

Easy for the developer - but consider all those CPU cycles wasted (reconsiling virtual DOM) on all the end user devices that these web apps live on. How much extra energy / CO2 spent?

The virtual DOM IS pure overhead

Sure, our devices are usually fast enough that end-users won’t experience any performance issues - but they may have to plug-in and re-charge their phones a lot more frequently…

Collapse
 
yazan_qarabash profile image
Yazan Qarabash

Great trade-off if you ask me