Following the discussion on reddit I open sourced some of the code I have been working since I think there are some ideas in there worth exploring. The goal is to explore a React replacement written in pure CLJS.
This is not an actual library yet. Just a collection of ideas with a proof of concept implementation.
I wrote some more about the motivations and implementation in the README.
Happy to discuss it here further if anyone is interested.
So render-seq takes a collection, a key-fn and a function that will render each item (could be a component, which I’ll also cover later). It is currently just a function call, maybe some syntax sugar via a macro could be added. Still debating whether or not this should have special form in the fragment macro.
I’ll try to add some more docs soon. There are a bunch of interesting things we can do here too.
Probably not no. It’ll be easy to embed a react component anywhere in the tree but that part of the tree will then belong to react, so it would control all the children.