Liking cljdoc? Tell your friends :D
All platforms.

rao.rum


wireclj/s

(wire initial-state step)
(wire initial-state step effect!)

Creates a dispatch, d!, to update the component with. Whenever d! is called it will:

  1. update that rao/local state with step and

  2. call effect! to do any side-effects

  3. when the component is started, it adds an atom rao/local from the value of initial-state.

initial-state can be:

  • a map with the initial state to the component.
  • a function, it will be called with the :rum/args to the component and expected to return the initial state.
Creates a dispatch, `d!`, to update the component with. Whenever `d!` is called it will:

 1. update that rao/local state with `step` and
 2. call `effect!` to do any side-effects

 0. when the component is started, it adds an atom rao/local from the value of `initial-state`.

`initial-state` can be:
   - a map with the initial state to the component.
   - a function, it will be called with the :rum/args to the component and expected to return the initial state.
sourceraw docstring

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

× close