Liking cljdoc? Tell your friends :D
ClojureScript only.

reacl-c.main.react

Functions for using reacl-c within a React application or library.

Functions for using reacl-c within a React application or library.
raw docstring

embedcljs

(embed item & [options])

Returns a React element embedding the given item. Current :state and state changes (:set-state!) are controlled by the corrensponding options.

Toplevel actions and effects are passed to the optional :handler-action! function. To have effects being executed implicitly, use reacl-c.main/execute-effects. Messages can be sent to the item via send-message!. A :key and a :ref can also be set in the options.

Returns a React element embedding the given item. Current `:state` and
state changes (`:set-state!`) are controlled by the corrensponding options.

Toplevel actions and effects are passed to the optional
`:handler-action!` function. To have effects being executed
implicitly, use [[reacl-c.main/execute-effects]]. Messages can be
sent to the item via [[send-message!]]. A `:key` and a `:ref` can also
be set in the options.
sourceraw docstring

send-message!cljs

(send-message! comp msg & [callback])

Sends a message to the instance of a react element returned by embed, i.e. the current value of reference set on them.

Sends a message to the instance of a react element returned
by [[embed]], i.e. the current value of reference set on them.
sourceraw docstring

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

× close