react

fun <S> <ERROR CLASS>.react(    state: S,     className: String? = null,     builder: <ERROR CLASS>.(getState: () -> S, changeState: ((S) -> S) -> Unit) -> Unit): React<S>
fun <ERROR CLASS>.react(className: String? = null, builder: <ERROR CLASS>.() -> Unit): React<dynamic>

DSL builder extension function.

It takes the same parameters as the constructor of the built component.