(camel->kebab s)
Converts from camel case (e.g. Foo or FooBar) to kebab case (e.g. foo or foo-bar).
Converts from camel case (e.g. Foo or FooBar) to kebab case (e.g. foo or foo-bar).
(camel-case k)
Returns camel case version of the key, e.g. :http-equiv becomes :httpEquiv.
Returns camel case version of the key, e.g. :http-equiv becomes :httpEquiv.
(camel-case-keys m)
Recursively transforms all map keys into camel case.
Recursively transforms all map keys into camel case.
(join-classes classes)
Join the classes
with a whitespace.
Join the `classes` with a whitespace.
(join-classes-js)
(join-classes-js & xs)
Joins strings space separated
Joins strings space separated
(reactify-props attrs)
Converts a HTML attribute map to react (class -> className), camelCases :style.
Converts a HTML attribute map to react (class -> className), camelCases :style.
(shallow-clj->js x & {:keys [keyword-fn] :or {keyword-fn name} :as options})
Shallowly transforms ClojureScript values to JavaScript.
sets/vectors/lists become Arrays, Keywords and Symbol become Strings,
Maps become Objects. Arbitrary keys are encoded to by key->js
.
Options is a key-value pair, where the only valid key is
:keyword-fn, which should point to a single-argument function to be
called on keyword keys. Default to name
.
Shallowly transforms ClojureScript values to JavaScript. sets/vectors/lists become Arrays, Keywords and Symbol become Strings, Maps become Objects. Arbitrary keys are encoded to by `key->js`. Options is a key-value pair, where the only valid key is :keyword-fn, which should point to a single-argument function to be called on keyword keys. Default to `name`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close