DEV Community

Discussion on: What's your preferred method for inserting DOM elements in vanilla JS?

Collapse
 
johnkazer profile image
John Kazer • Edited

I like pug and having started to learn functional programming I have discovered pug-vdom.

So now I build my logic and state then inject it into a pug template and apply the pug-vdom virtual DOM to update the DOM. Not sure if that still counts as vanilla JS though!

I guess is not really about inserting into the DOM either, as all nodes already exist in the template to begin with...