Package io.kvision.react

KVision bindings for embedded React components.

Types

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

React component for KVision with support for state holder.

Functions

Link copied to clipboard
fun <ERROR CLASS>.kv(builder: <ERROR CLASS>.() -> Unit): <ERROR CLASS>

An extension function to simplify kvisionWrapper usage.

Link copied to clipboard
fun kvisionWrapper(builder: <ERROR CLASS>.() -> Unit): <ERROR CLASS>

A helper functional component which allows to use KVision components as React children.

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

DSL builder extension function.

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

DSL builder extension function for binding to ObservableState

Link copied to clipboard
fun <S> reactWrapper(builder: <ERROR CLASS>.(<ERROR CLASS><S>) -> Unit): <ERROR CLASS>

A helper functional component used by KVision React.