(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 <ComponentName> listed in the file <module>.json in the classpath.
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.
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 <ComponentName> listed in the file <module>.json in the classpath. 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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close