Skip to content

Comment on A virtual DOM in 200 lines of JavaScript

Comments

Is there a chance that the one million nodes in the example - or a where a large list exists in some case where order matters - that nodes could be rearranged?

Do you mean whether nodes could be rearranged without recreating them? This would require identifying them with IDs, like React can do. That's definitely possible, but not something covered in the article or supported in the associated library. Although the article does mention it.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.