←back to thread

218 points mdhb | 3 comments | | HN request time: 0.67s | source
Show context
pier25 ◴[] No.44392178[source]
The web really needs native templating, reactivity, and data binding.

I can't even begin to imagine how much CPU and bandwidth is wasted with billions of users downloading, parsing, and executing something like React.

replies(4): >>44392500 #>>44393120 #>>44393371 #>>44400323 #
strix_varius ◴[] No.44393120[source]
With the TC39 signals proposal, part of that is making progress.
replies(1): >>44393172 #
CharlieDigital ◴[] No.44393172[source]
Except React.....
replies(2): >>44393456 #>>44395794 #
tacticus ◴[] No.44393456[source]
Was react ever about progress?
replies(1): >>44394351 #
nine_k ◴[] No.44394351[source]
If you valued your sanity when developing complex Web UIs, React was a lifesaver.

DOM sucks though, it's slow, it's heavyweight, it lacks transactions. We're stuck with it, and frameworks like React have to do the DOM diffing + patching thing, explicitly, in JS.

replies(2): >>44394509 #>>44396318 #
1. nchmy ◴[] No.44396318[source]
Nah.

https://svelte.dev/blog/virtual-dom-is-pure-overhead

https://news.ycombinator.com/item?id=43971164

replies(1): >>44397821 #
2. nine_k ◴[] No.44397821[source]
React appeared in 2013, Svelte, in 2016. Three years is a lot. What comes next can see and avoid some pitfalls of earlier designs.
replies(1): >>44399766 #
3. nchmy ◴[] No.44399766[source]
1. I'm referring to the comment that the DOM is slow/bad. It is not. Moreover, VDOM is ON TOP OF the DOM.

2. We're currently living in 2025. React (and SPAs) is not even slightly necessary.