Hacker News new | ask | show | jobs
by theprotocol 2520 days ago
I've toyed around with the template-strings-to-markup approach before, but couldn't quite figure out how using `map` to generate dynamic lists avoided doing a full O(n) loop upon each update without some kind of diffing engine (other than the browser's own markup diffing).
1 comments

it's indeed not possible, that's why there is a `map` module for rendering lists.