5 ms·
> The JSON<>React serialization doesn't seem to offer much value I mean, you don't see any value in being able to declaratively state an entire app? ...
by nawgz 5y ago
> The JSON<>React serialization doesn't seem to offer much value
I mean, you don't see any value in being able to declaratively state an entire app? ...
- iamstupidsimple 5y agoThe DOM is a declarative state for a document.
- nsonha 5y agoIs 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.
- iamstupidsimple 5y agoReact is fine for web apps, but static sites are not web apps. Using the DOM where appropriate is perfectly fine.
- nawgz 5y agoHis 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