fun <S, W : Widget> W.bind(observableState: ObservableState<S>, factory: W.(S) -> Unit): W
An extension function which binds the widget to the observable state.
S - the state type
S
W - the widget type
W
observableState - the state
observableState
factory - a function which re-creates the view based on the given state
factory