Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Thanks, that explanation is clear. Two things I am still trying to picture in practice.

- For ""derived values from DOM on demand"", what do you do when the derived value is expensive or used in multiple places. Do you just accept recomputing, or do you have a pattern to keep it from turning into lots of repeated DOM reads. -And for bigger interactions like table row selection, keyboard navigation, drag and drop, does your approach still model that as DOM attributes and queries, or do you keep a small in memory store for that kind of state.

The MutationObserver tips are useful too, scoping and attributeFilter feels like the difference between this being neat and this being a footgun. I will take a look at the repo and the book. Thanks



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: