BaseComponentWrapper

Companion
class
class Object
trait Matchable
class Any

Value members

Concrete methods

Enables writing props and state for Scala defined components. This is needed for hot loading, where data must be written to a JS object and then read when the application is reloaded.

Enables writing props and state for Scala defined components. This is needed for hot loading, where data must be written to a JS object and then read when the application is reloaded.

def insertMiddleware(middleware: (Object, Object) => Object): Unit

Inserts a component constructor middleware function, which transforms a component constructor given the original constructor and the outer component object (for state tracking)

Inserts a component constructor middleware function, which transforms a component constructor given the original constructor and the outer component object (for state tracking)

This is used for hot-loading, which wraps the component constructor inside a proxy component

Value Params
middleware

the middleware function to use

Implicits

Implicits

implicit def proplessKeyAndRef[C <: BaseComponentWrapper { type Props = Unit; }](c: C)(implicit constructorTag: ConstructorTag[Def]): KeyAndRefAddingStage[Def]