Liking cljdoc? Tell your friends :D

reagent.impl.component


*current-component*cljs

source

add-obligatorycljs

(add-obligatory fun-map)
source

as-classcljs

(as-class tag compiler)
source

built-in-static-method-namescljs

source

cache-react-classcljs

(cache-react-class compiler c constructor)
source

cached-react-classcljs

(cached-react-class compiler c)
source

camelify-map-keyscljs

(camelify-map-keys fun-map)
source

cljsifycljs

(cljsify body compiler)
source

comp-namecljs

(comp-name)
source

component-namecljs

(component-name c)
source

create-classcljs

(create-class body compiler)

Creates JS class based on provided Clojure map.

Map keys should use React.Component method names (https://reactjs.org/docs/react-component.html), and can be provided in snake-case or camelCase. Constructor function is defined using key :getInitialState.

React built-in static methods or properties are automatically defined as statics.

Creates JS class based on provided Clojure map.

Map keys should use `React.Component` method names (https://reactjs.org/docs/react-component.html),
and can be provided in snake-case or camelCase.
Constructor function is defined using key `:getInitialState`.

React built-in static methods or properties are automatically defined as statics.
sourceraw docstring

custom-wrappercljs

(custom-wrapper key f)
source

dash-to-method-namecljs

source

do-rendercljs

(do-render c compiler)
source

extract-childrencljs

(extract-children v)
source

extract-propscljs

(extract-props v)
source

fn-to-classcljs

(fn-to-class compiler f)
source

functional-do-rendercljs

(functional-do-render compiler c)
source

functional-rendercljs

(functional-render compiler jsprops)
source

functional-render-fncljs

(functional-render-fn compiler tag)

Create copy of functional-render with displayName set to name of the original Reagent component.

Create copy of functional-render with displayName set to name of the
original Reagent component.
sourceraw docstring

functional-render-memo-fncljs

(functional-render-memo-fn prev-props next-props)
source

functional-wrap-rendercljs

(functional-wrap-render compiler c)
source

get-argvcljs

(get-argv c)
source

get-childrencljs

(get-children c)
source

get-propscljs

(get-props c)
source

get-wrappercljs

(get-wrapper key f)
source

map-to-jscljs

(map-to-js m)
source

obligatorycljs

source

props-argvcljs

(props-argv c p)
source

rat-optscljs

source

reactcljs

source

react-class?cljs

(react-class? c)
source

reactify-componentcljs

(reactify-component comp compiler)
source

reagent-class?cljs

(reagent-class? c)
source

reagent-component?cljs

(reagent-component? c)
source

state-atomcljs

(state-atom this)
source

wrap-funscljs

(wrap-funs fmap compiler)
source

wrap-rendercljs

(wrap-render c compiler)

Calls the render function of the component c. If result res evaluates to a:

  1. Vector (form-1 component) - Treats the vector as hiccup and returns a react element with a render function based on that hiccup
  2. Function (form-2 component) - updates the render function to res i.e. the internal function and calls wrap-render again (recur), until the render result doesn't evaluate to a function.
  3. Anything else - Returns the result of evaluating c
Calls the render function of the component `c`.  If result `res` evaluates to a:
1) Vector (form-1 component) - Treats the vector as hiccup and returns
   a react element with a render function based on that hiccup
2) Function (form-2 component) - updates the render function to `res` i.e. the internal function
   and calls wrap-render again (`recur`), until the render result doesn't evaluate to a function.
3) Anything else - Returns the result of evaluating `c`
sourceraw docstring

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

× close