Permalink
Browse files

Parameterize Om component

  • Loading branch information...
jraines committed Nov 3, 2015
1 parent ab0150a commit 39be499a06b89698fe2048f4f8dcfc905a0b4400
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/simoutfit/core.cljs
View
@@ -10,11 +10,11 @@
(defui HelloWorld
Object
(render [this]
- (dom/div nil "Hello, world!")))
+ (dom/div nil (get (om/props this) :message))))
(def hello (om/factory HelloWorld))
-(js/ReactDOM.render (hello) (gdom/getElement "app"))
+(js/ReactDOM.render (hello {:message "Hello Om"}) (gdom/getElement "app"))
(def r (t/reader :json))

0 comments on commit 39be499

Please sign in to comment.