(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 builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |