kvision / pl.treksoft.kvision.react / React / <init>

<init>

(js) React(state: S, classes: Set<String> = setOf(), builder: RBuilder.(getState: () -> S, changeState: ((S) -> S) -> Unit) -> Unit)

React component for KVision with support for state holder.

Parameters

S - state type

classes - a set of CSS class names

builder - a builder function for external react components with support for the state holder.