Component

abstract class Component[F[_], S, P, E](val initialState: S, val id: String)(`evidence$1`: Effect[F], `evidence$2`: StateSerializer[S], `evidence$3`: StateDeserializer[S])

Component definition. Every Korolev application is a component. Extent it to declare component in object oriented style.

Component definition. Every Korolev application is a component. Extent it to declare component in object oriented style.

Type Params
E

Type of events produced by component

F

Control monad

S

State of the component

Value Params
id

Unique identifier of the component. Use it when you create component declaration dynamically

Companion
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def render(parameters: P, state: S): Node

Component render

Component render

Concrete fields

val context: Context[F, S, E]

Component context.

Component context.

import context._
val id: String
val initialState: S