(clj->props props)
(clj->props props native?)
Shallowly converts props map to a JS obj. Handles certain special cases:
:class
-> "className", and joins collections together as a string:for
-> "htmlFor":style
-> deeply converts this prop to a JS objBy default, converts kebab-case keys to camelCase strings. pass in false
as a second arg to disable this.
Shallowly converts props map to a JS obj. Handles certain special cases: 1. `:class` -> "className", and joins collections together as a string 2. `:for` -> "htmlFor" 3. `:style` -> deeply converts this prop to a JS obj By default, converts kebab-case keys to camelCase strings. pass in `false` as a second arg to disable this.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close