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.
Attributes
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