(camelize-keys style-map)
Takes a clj map and returns that map modified. Postwalk replaces kebab keywords with camel case version as is expected by React.
Also replaces styled components with their CSS classname when they appear in key position.
Takes a clj map and returns that map modified. Postwalk replaces kebab keywords with camel case version as is expected by React. Also replaces styled components with their CSS classname when they appear in key position.
(force-children x)
Utility function that will force a lazy sequence of children (recursively) into realized vectors (React cannot deal with lazy seqs in production mode)
Utility function that will force a lazy sequence of children (recursively) into realized vectors (React cannot deal with lazy seqs in production mode)
(get-cls-name-from-meta namespace-name component-sym)
Returns string or nil for the classname
Returns string or nil for the classname
(make-js-props props class-name)
Allows using kebab-case prop names.
Allows using kebab-case prop names.
(relement? el)
Is it a reagent vector? (or a best effort guess at least.)
Is it a reagent vector? (or a best effort guess at least.)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close