Skip to content

Commit

Permalink
Add [tag props] arity to om.dom/create-element
Browse files Browse the repository at this point in the history
  • Loading branch information
anmonteiro authored Jun 29, 2017
1 parent f31832b commit c68e668
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/om/dom.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,7 @@
to calling `js/React.createElement`"
([tag]
(create-element tag nil))
([tag opts]
(js/React.createElement tag opts))
([tag opts & children]
(js/React.createElement tag opts children)))

0 comments on commit c68e668

Please sign in to comment.