bind Sync
An extension function which binds the widget to the given state flow synchronously. It's less efficient than bind, but fully compatible with KVision 4 state bindings.
Parameters
S
the state type
W
the widget type
state Flow
the StateFlow instance
remove Children
remove all children of the component
run Immediately
whether to run factory function immediately with the current state
factory
a function which re-creates the view based on the given state