(wire initial-state step)(wire initial-state step effect!)Creates a dispatch, d!, to update the component with. Whenever d! is called it will:
update that rao/local state with step and
call effect! to do any side-effects
when the component is started, it adds an atom rao/local from the value of initial-state.
initial-state can be:
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.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |