logoalt Hacker News

inigyoutoday at 8:18 AM2 repliesview on HN

Your first thought might be to use React, but in prior eras we wrote a function updateFieldVisibility() and that worked fine. Straightforward code can be faster than using a state management framework to determine exactly which fields' visibility changed.


Replies

dsegotoday at 8:38 AM

But it's harder to have component composition. Consider also lists and adding/removing items and so on, juggling all of it gets insanely complex and requires MVC or MVVM patterns like with backbone.js

show 1 reply
not-a-llmtoday at 8:51 AM

it can be faster, but is it correct?

React was invented because jQuery style state management collapsed into unmanageable code past a certain size

show 1 reply