(compile-react-element element)
Render an element vector as a HTML element.
Source
(defn compile-react-element
"Render an element vector as a HTML element."
[element]
(let [[tag attrs content] (normalize/element element)]
`(~(react-fn tag)
~(name tag)
~(compile-attrs attrs)
~@(if content (compile-react content)))))