News for hackers. Stuff that matters.
Re:How to manage HTML DOM with vanilla JavaScript only? by DEADB17 on Thursday April 02, 2020 @07:16PM (#22764851)
Most of the complexity comes from state management and tracking data dependencies, not dom manipulation.

If you like keeping things light this library gives you a lot of bang for the buck:

https://github.com/MaiaVictor/PureState

It's similar to how pub/sub works but it does the topological sort that prevents data with diamond shaped dependencies from being triggered twice, in less than 500bytes minified (before zipping).

There are no comments on this comment yet.