DEV Community

Discussion on: Why Virtual DOM?

 
woojoo666 profile image
woojoo666

a lot of the stuff you mentioned is either runtime optimizations or bundling (which is static analysis, but it's really just tracing import statements to find which code is used and which isn't). And SSR just runs the code to generate a DOM tree, it's not analyzing the code or generating code . Real static analysis is difficult, as you pointed out. But that's why Svelte is making such big waves. And prepack looks to be going that direction too. It's a huge field with a lot of opportunity.

But yeah ultimately it seems we disagree on what role VDOMs will have in the future, I guess we'll just have to see :)

Thread Thread
 
aidenybai profile image
Aiden Bai

Ah yeah, I was so hyped for the prepack project but I'm kinda bummed out facebook basically just dropped the project