Hacker News new | ask | show | jobs
by kaoD 3129 days ago
I didn't make it clear: I meant UI state, not application state. DOM manipulation is inherently stateful, and there is no way websockets are going to help with it.

Now your state can live in up to three places: DOM, JS and backend. It's even easier to desync UI state unless you rebuild the page from scratch (sending complete HTML as in old-school AJAX... or using React and the likes to make it fast enough to apply a diff of DOM changes).

I agree you don't need a framework for simple frontend code like form validation but:

> jQuery can simplify the experience.

How so? I'll quote my other reply:

> jQuery brings nothing to the table in 2017. I'm willing to be proved wrong. Is there anything that jQuery vastly simplifies?

(Compared to vanilla JS + CSS)