($d type & args)
Creates a new React DOM element. "type" ought to be a string like "span", "div",etc.
When a map of props are passed as the second argument, will statically convert to a JS object, specially handling things like converting kebab-case props to camelCase and other transformations.
Use the special & or :& prop to merge dynamic props in.
Creates a new React DOM element. "type" ought to be a string like "span", "div",etc. When a map of props are passed as the second argument, will statically convert to a JS object, specially handling things like converting kebab-case props to camelCase and other transformations. Use the special & or :& prop to merge dynamic props in.
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 |