recurrent.core

defcomponent

macro

(defcomponent named prop-keys source-keys initializer css dom-sink-key dom-sink-fn & other-sinks)

Defines a recurrent component.

run!

(run! main drivers)(run! main props other-sources drivers)

Take a function to be run main, props (which is a map where the values are non-signals), sources (which is a map where the values are signals), and drivers (a map where the values are recurrent drivers). Calls the function provided as main passing the props and the merging of the sources and drivers. Will match the returned sinks from main with the provided drivers to perform associated mutations.