Hacker News new | ask | show | jobs
by nsonha 1687 days ago
Is this a joke? Ask any mobile or desktop app developer (people who program UIs in a non-broken platform) how they think about having state inside the views.

Only on the web there exist people who hack around for so long they actually believe the hack is the right way.

1 comments

React is fine for web apps, but static sites are not web apps. Using the DOM where appropriate is perfectly fine.
His point, stated with a bit too much ad hominem, is that with such a serialization you can scaffold entire dynamic web apps which can include form submission where the form dynamically updates based on rules & current state, uses a configurable method, and more, whereas DOM is inherently a "view" and has no concept of state