Oh, no. Even if that's possible, it's not allowed to do in Respo since it's
already optimized with some mechanism like `shouldComponentUpdate` to
reduce renderings. It's an anti-pattern.

On Sat, Oct 1, 2016 at 5:35 AM Dustin Getz <[email protected]> wrote:

>
> 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=>
>
>
> On Thu, Sep 29, 2016 at 9:36 PM, Jiyin Yiyong <[email protected]>
> wrote:
>
> I'm not sure about dynamic binding, could you give a demo on that?
>
> 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 <[email protected]>
> 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 [email protected].
> >
> > To post to this group, send email to [email protected].
>
> >
> > Visit this group at https://groups.google.com/group/clojurescript.
>
> --
> 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 https://groups.google.com/group/clojurescript.
>
> --
> Note that posts from new members are moderated - please be patient with
> your first post.
> ---
> 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
> [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/clojurescript.
>

-- 
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 https://groups.google.com/group/clojurescript.

Reply via email to