Thanks so much Dan, that was a great help!
the code ends up being:* (def ctg (-> js/React (aget "addons") (aget
"CSSTransitionGroup"))) *
but yeah, you were totally correct :)
On Friday, February 28, 2014 5:34:34 AM UTC-8, Dan Holmsand wrote:
>
> Yes, Reagent doesn't know about React components that don't live in
> React.DOM (ReactCSSTransitionGroup is in React.addons).
>
> So what you would need to do is to get hold of the component
> "constructor", with something like
>
> (def ctg (-> js/React (aget "addons") (aget "ReactCSSTransitionGroup")))
>
> and then call that with e.g
>
> [ctg {:transitionName "foo"} [:p "child1"] [:p "child2"]]
>
> or somesuch (I'm probably messing something up here, being away from Emacs
> for the moment, but you get the idea...).
>
> /dan
>
> On 28 feb 2014, at 14:10, Chris Sutela <[email protected] <javascript:>>
> wrote:
>
> is there a recommended way of accessing the ReactCSSTransitionGroup tag
> that is a part of react-wtih-add-ons.js?
>
> Specifically I am having trouble avoiding an Uncaught Error: Assert
> failed: Unknown tag: ':ReactCSSTransitionGroup'
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to [email protected] <javascript:>
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> [email protected] <javascript:>
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected] <javascript:>.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.