Description
Hey @Lokeh JS dev here, just started learning Clojure. I appreciate your work in integrating JS/react tools, and just now read your "when-is-immutability-fast" article.
Regarding your "wrapping all of our components in React.memo" comment in the article, I also thought about this when learning about macros. I like the idea of taking advantage of Clojure so that we can stop thinking about performance and focus on the UI. The concern seems to be that not every component needs this optimization - but wouldn't it be possible to track dependencies, and only apply the useMemo
hook where it's necessary?
JS tools like mobx
provide this rendering magic via proxies
, but since macros give control over code+data this optimization could be done via react itself without having to add another dependency.
Just started learning Clojure/macros of course, so this is all high level for me still, would be great to hear your thoughts! Thanks
Activity