RStatics

open class RStatics<P : Props, S : State, C : Component<P, S>, CTX : Context<*>?>(klazz: KClass<C>) : RComponentClassStatics<P, S, CTX> (source)

Usage:

companion object : RStatics<Props, State, RComponent, Nothing>(RComponent::class) {
init {
defaultProps = ...
...
}
}

in your class components

Constructors

Link copied to clipboard
constructor(klazz: KClass<C>)

Properties

Link copied to clipboard
open override var contextType: CTX
Link copied to clipboard
open override var defaultProps: P?
Link copied to clipboard
open override var displayName: String?
Link copied to clipboard
open override var getDerivedStateFromError: (Throwable) -> S??
Link copied to clipboard
open override var getDerivedStateFromProps: (P, S) -> S??