News for hackers. Stuff that matters.
Re:Virtual DOM is pure overhead (2018) by dmitriid on Thursday July 01, 2021 @06:42AM (#27697889)
> <script> blocks are not written in JavaScript, but rather a language with the same general syntax but different semantics

One could argue that React's hooks are the same: they look like JS but change JS semantics.

However, your point is still valid.

Re:Virtual DOM is pure overhead (2018) by chrismorgan on Thursday July 01, 2021 @05:38PM (#27705193)
Nah, React hooks are still JavaScript—they’re library functionality, executed directly as JavaScript.