Package-level declarations

Types

Link copied to clipboard
external interface HOC<out P : Props, in R : Props>
Link copied to clipboard
interface RBuilder
Link copied to clipboard
open class RBuilderImpl : RBuilder
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract class RComponent<P : Props, S : State> : Component<P, S>
Link copied to clipboard
interface RElementBuilder<out P : Props> : RBuilder
Link copied to clipboard
open class RElementBuilderImpl<out P : Props>(val attrs: P) : RBuilderImpl, RElementBuilder<P>
Link copied to clipboard
typealias Render = RBuilder.() -> Unit
Link copied to clipboard
typealias RHandler<P> = RElementBuilder<P>.() -> Unit
Link copied to clipboard
abstract class RPureComponent<P : Props, S : State> : PureComponent<P, S>

Properties

Link copied to clipboard
var Props.ref: Ref<*>?

Functions

Link copied to clipboard
fun <P : Props> allOf(vararg hocs: HOC<P, P>): (component: ComponentClass<P>) -> ComponentClass<P>
Link copied to clipboard
inline fun buildElement(handler: Render): ReactElement<*>
inline fun <T : RBuilder> buildElement(rBuilder: T, handler: T.() -> Unit): ReactElement<*>
Link copied to clipboard
fun <T : RBuilder> buildElements(builder: T, handler: T.() -> Unit): ReactNode?
Link copied to clipboard
inline fun <P : Props, C : Component<P, *>> RBuilder.child(noinline handler: RHandler<P>)
Link copied to clipboard
inline fun <P : Props> cloneElement(element: ReactElement<P>, vararg children: ReactNode?, props: P.() -> Unit): ReactElement<P>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun <P : Props> fc(func: RBuilder.(props: P) -> Unit): FC<P>

Get function component from func

fun <P : Props> fc(displayName: String, func: RBuilder.(props: P) -> Unit): FC<P>

Get function component from func with displayName

Link copied to clipboard
fun Children.forEachElement(children: ReactNode?, handler: (ReactElement<*>) -> Unit)
Link copied to clipboard
Link copied to clipboard
operator fun <P : Props, R : Props> HOC<P, R>.invoke(component: RBuilder.(P) -> Unit): ComponentClass<R>
operator fun <P : Props, R : Props> HOC<P, R>.invoke(config: Any, component: RBuilder.(P) -> Unit): ComponentClass<R>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun <S : State> Component<*, S>.setState(buildState: S.() -> Unit)