It seems to be quite popular these days to try to fit Facebook's React library into ClojureScript, so I thought I'd have a go as well...
The result is here: https://github.com/holmsand/cloact Cloact uses plain cljs functions to define React components, and a Hiccup-y syntax for stringing them together. Performance seems to be quite good, especially in advanced-compilation-mode. Cloact uses shouldComponentUpdate to avoid any unnecessary rendering, and so avoids the cost of converting from cljs vectors and maps a lot of the time. Cloact comes with a couple of silly examples: https://github.com/holmsand/cloact/blob/master/examples/simple/src/simpleexample.cljs (a fancy clock that even can change color) and https://github.com/holmsand/cloact/blob/master/examples/todomvc/src/todomvc.cljs (the obligatory todomvc implementation). Enjoy, /dan -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/clojurescript.
