Respo is a front-end MVC library in ClojureScript. It's like Reagent but built totally in ClojureScript, so it's purer and more friendly to hot code swapping. The shortcomings is it has quite less features comparing to React.js , for example side effects.
This is the first version of the docs, small update will still come.
--
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 clojurescript+unsubscribe@googlegroups.com.
To post to this group, send email to clojur...@googlegroups.com.
Visit this group at https://groups.google.com/group/clojurescript.
Respo is like subset and a strict version of React. I suppose it's doing less compared to React.
On Thursday, September 29, 2016 at 10:43:31 PM UTC+8, Dustin Getz wrote:
> Does Respo work with dynamic bindings in render functions? My biggest complaint with React and derivatives are broken dynamic scope.
>
>
> On Thu, Sep 29, 2016 at 4:47 AM, Jiyin Yiyong <jiyin...@gmail.com> wrote:
> http://respo.site
>
>
>
> Respo is a front-end MVC library in ClojureScript. It's like Reagent but built totally in ClojureScript, so it's purer and more friendly to hot code swapping. The shortcomings is it has quite less features comparing to React.js , for example side effects.
>
>
>
> This is the first version of the docs, small update will still come.
>
>
>
> --
>
> 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 clojurescrip...@googlegroups.com.
cljs.user=> (ns foo.core (:require [reagent.core :as reagent]))
nil
foo.core=> (def ^:dynamic *foo* 42)
#'foo.core/*foo*
foo.core=> (defn inner [] [:div *foo*])
#'foo.core/inner
foo.core=> (defn root1 [] (binding [*foo* (inc *foo*)] [inner]))
#'foo.core/root1
foo.core=> (defn root2 [] (binding [*foo* (inc *foo*)] (inner)))
#'foo.core/root2
foo.core=> (reagent/render-to-string [root1])
"<div ...>42</div>"
foo.core=> (reagent/render-to-string [root2])
"<div ...>43</div>"
foo.core=>
To unsubscribe from this group and stop receiving emails from it, send an email to clojurescript+unsubscribe@googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "ClojureScript" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/clojurescript/pEVrbSHFSYg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to clojurescrip...@googlegroups.com.