logoalt Hacker News

YuechenLi • today at 5:49 AM • 2 replies • view on HN

Of course you can, and you can also make it so that if UI changes, instead of having every single entity rerender, only the changed entity would rerender, and you can have a library that manages the changes or "dirty" state of these entities reactively.

And that's why React exists.


Replies

rudedogg • today at 6:13 AM

Almost every GUI toolkit does this, it’s nothing React specific. And with the browser you have to know all sorts of complexities to know what it’s actually doing (is this change going to cause a full layout, full paint, etc.)

Personally I think most of the abstractions we’ve tried around GUIs don’t work, and old school frameworks like AppKit are better. They just need some DX love since programming has evolved so much.

koolala • today at 6:44 AM

Doesn't that need a whole new framework with other downsides but the first option lets you use it with how it is designed?