setState

fun setState(partialState: S, callback: () -> Unit = definedExternally)(source)
fun setState(transformState: (S) -> S, callback: () -> Unit = definedExternally)(source)