Skip to content

Instantly share code, notes, and snippets.

@flyingmachine
Last active August 29, 2015 14:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flyingmachine/399995a4a6057e14b4e1 to your computer and use it in GitHub Desktop.
Save flyingmachine/399995a4a6057e14b4e1 to your computer and use it in GitHub Desktop.
CSSTransitionGroup working with Om 0.8.8, React 0.13.3
(def app-state (atom {}))
(def ctg (-> js/React (aget "addons") (aget "CSSTransitionGroup")))
(defn app [_ owner]
(om/component
(.createElement js/React ctg
#js {:transitionName "example"
:transitionAppear true}
(dom/div nil "test"))))
(om/root app app-state
{:target (.getElementById js/document "app")})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment