reagent.impl.component

*current-component*

dynamic

add-obligatory

(add-obligatory fun-map)

as-class

(as-class tag compiler)

built-in-static-method-names

cache-react-class

(cache-react-class compiler c constructor)

cached-react-class

(cached-react-class compiler c)

camelify-map-keys

(camelify-map-keys fun-map)

cljsify

(cljsify body compiler)

comp-name

(comp-name)

component-name

(component-name c)

create-class

(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.

custom-wrapper

(custom-wrapper key f)

dash-to-method-name

do-render

(do-render c compiler)

extract-children

(extract-children v)

extract-props

(extract-props v)

fn-to-class

(fn-to-class compiler f)

functional-do-render

(functional-do-render compiler c)

functional-render

(functional-render compiler jsprops)

functional-render-fn

(functional-render-fn compiler tag)
Create copy of functional-render with displayName set to name of the
original Reagent component.

functional-render-memo-fn

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

functional-wrap-render

(functional-wrap-render compiler c)

get-argv

(get-argv c)

get-children

(get-children c)

get-props

(get-props c)

get-wrapper

(get-wrapper key f)

map-to-js

(map-to-js m)

obligatory

props-argv

(props-argv c p)

rat-opts

react-class?

(react-class? c)

reactify-component

(reactify-component comp compiler)

reagent-class?

(reagent-class? c)

reagent-component?

(reagent-component? c)

state-atom

(state-atom this)

wrap-funs

(wrap-funs fmap compiler)

wrap-render

(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`