Type parameters
Type parameter
|
Description
|
TElement: HTMLElement |
|
TState |
|
Callable
- __call(el: TElement | Falsy, state: TState | void): void
-
Parameters
-
el: TElement | Falsy
-
state: TState | void
Returns void
- __call<TComponent>(syncProps: function): function
-
Type parameter
|
Description
|
TComponent: Component |
|
Parameters
-
syncProps: function
-
- (component: TComponent): object | Falsy
-
Parameters
Returns object
|
Falsy
Returns function
-
- (component: object): void
A DOM state sync function that can be used as an imperative update method from within a DOM state sync callback, but also as a decorator factory.
syncDOMState