Re:TodoMVC App Written in Vanilla JavaScript
by 1marc on Saturday May 07, 2022 @12:10PM
(#31295823)
I did this style to mimick modern framework code — taking the state (todos) and render the state of the world every time. If the browser had a DOM diffing api this would be more efficient and we would be there. So for a larger project I might using something like Lit’s html stand-alone package or fastdom to get the DOM digging functionality without much dependency code.
[ Parent
| on HN ]
There are no comments on this comment yet.