top | item 40774689

(no title)

snshn | 1 year ago

React has terrible performance

discuss

order

TheRealPomax|1 year ago

Poorly written React (which is a lot of it) has terrible performance. Properly written React (just like properly written anything) has great performance.

The reason you experience it as terrible is because it's today's visual basic: it's so easy to start with that everyone does, without needing to understand programming or specifically how React works. You can just throw shit together and it'll work. It's empowered an entire generation of web and app makers, with the cost being "and they're not good at that, through no fault of their own, but they are just good enough to be dangerous".

tracker1|1 year ago

It isn't even that new, in terms of approach... a LOT of game and simulation would work with state driven rendering... each frame is rendered against the current state. Similar workflows to React+Redux were in pretty broad use, the tools just brought it to web development... from there, React as a model for UI abstraction became more popular for other applications outside web use. It makes a lot of sense.

Akronymus|1 year ago

In fact, afair react was made to make the page faster. (as dom manipulation was WAY slower back then)

ajkjk|1 year ago

It has adequate performance and the ease of development is worth it not being the most performant way to do things.