-
-
Save flyingmachine/399995a4a6057e14b4e1 to your computer and use it in GitHub Desktop.
CSSTransitionGroup working with Om 0.8.8, React 0.13.3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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