kvision / pl.treksoft.kvision.react / React / subscribe

subscribe

(js) fun subscribe(observer: (S) -> Unit): () -> Unit

Subscribe for the state change notifications.