Liking cljdoc? Tell your friends :D

hx.utils


*perf-debug?*clj

source

clj->propscljs

(clj->props props)
(clj->props props native?)

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.

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.
sourceraw docstring

keyword->strcljs

(keyword->str k)
source

measure-perfclj/smacro

(measure-perf tag form)
source

props->cljcljs

(props->clj props)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close