DEV Community

Discussion on: What Do You Think About the Virtual DOM?

Collapse
 
dance2die profile image
Sung M. Kim

Thanks for the series, Miklos.

This series really makes me think about the topic.

Below are my answers in-line.

Do you prefer cross-platform vDOM implementations or Progressive Web Apps? Are these two substitute or complementary?

I think they are unrelated for preference.
I believe vDOM is an in-memory representation of DOM while PWA is a practice to follow to make the site work offline like a traditional app.

Do you prefer JSX and CSS-in-JS or the old-school HTML way?

I don't have a preferance as I am still learning CSS-in-JS on Manning video course.

Did you ever have issues with the extra abstraction layer of a vDOM? I am curious about situations where you wanted to do something - that you could do with vanilla DOM - but was blocked by the vDOM layer.
Do you feel like vDOM based frameworks are faster? Can you mention a case where you experienced speed differences?

I believe people make huge deal about vDOM being faster and sometimes slower than a direct DOM manipulation. It's a topic for me to learn 😅

Whatever pops into your mind about the Virtual DOM.

I've never heard of it until I started using React. Got started with React only because of vDOM being faster (according to many articles that came out at the time).

But it seems like a good step to providing devs more options.

Collapse
 
solkimicreb profile image
Miklos Bertalan

Thanks for the kind words (:

Do you prefer cross-platform vDOM implementations or Progressive Web Apps? Are these two substitute or complementary?

I meant that both PWA and vDOM (with React Native) are competing techs in a sense that they try to provide nice (native app like) experience on mobiles. Maybe I could phrase it a bit better.

Collapse
 
dance2die profile image
Sung M. Kim

I see what you mean :)

I still cannot prefer as I haven't implemented PWA, yet 😅