workflo.macros.jscomponents
defjscomponents
macro
(defjscomponents module)
Defines ClojureScript functions of the form
(defn <component-name> [props & children]
(js/React.createElement js/<module>.<ComponentName>
(clj->js props)
... children ..))
for all component names
This allows to integrate an entire JavaScript React component library into a ClojureScript project (e.g. using Om Next) with a single (defjscomponents ComponentLibraryName) expression and a ComponentLibraryName.json file.