News for hackers. Stuff that matters.
Re:Virtual DOM is pure overhead (2018) by miracle2k on Tuesday June 29, 2021 @10:33PM (#27684263)
When React first come out, the whole notion of mixing HTML and Javascript code was, if anything, widely rejected. Rather than going viral as a kind of fashionable thing, I feel that it really had to earn its position.
Re:Virtual DOM is pure overhead (2018) by macspoofing on Wednesday June 30, 2021 @01:55PM (#27691540)
>When React first come out, the whole notion of mixing HTML and Javascript code was, if anything, widely rejected.

And it still is. Mixing JS and HTML/DOM does result in fragile code and you shouldn't do it. React VDOM and JSX is not the same thing .. at all. Again, JSX isn't new. XML-based declarative UI frameworks with data-biding were an old thing by the time React arrived on the scene. That's how Flash Flex (MXML) and Silverlight (XAML) worked, for example.