React

class React<S>(    state: S,     className: String? = null,     builder: <Error class: unknown class>.(getState: () -> S, changeState: ((S) -> S) -> Unit) -> Unit)

React component for KVision with support for state holder.

Parameters

S

state type

className

CSS class names

builder

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

Constructors

Link copied to clipboard
fun <S> React(    state: S,     className: String? = null,     builder: <Error class: unknown class>.(getState: () -> S, changeState: ((S) -> S) -> Unit) -> Unit)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open fun afterDestroy()
Link copied to clipboard
open fun afterInsert(node: <Error class: unknown class>)
Link copied to clipboard
open fun getState(): S
Link copied to clipboard
open fun subscribe(observer: (S) -> Unit): () -> Unit

Properties

Link copied to clipboard
var state: S