Skip to content

Instantly share code, notes, and snippets.

@hugooliveirad
Created January 5, 2016 18:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hugooliveirad/6a5b7dbbaa5658fc5a98 to your computer and use it in GitHub Desktop.
Save hugooliveirad/6a5b7dbbaa5658fc5a98 to your computer and use it in GitHub Desktop.
(defn button [props _]
(om/component
(dom/button nil (:children props))))
(def render-out (om/render-to-object button {:children "text"}))
(is (= "text" (:children render-out))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment