-
Notifications
You must be signed in to change notification settings - Fork 1
Options
Anton edited this page Aug 17, 2019
·
5 revisions
The options can be used to specify callbacks and set other features.
options: Options for Preact.
| Name | Type & Description |
|---|---|
| syncComponentUpdates | boolean |
| debounceRendering | (callback: function(): void) => ? |
callback* function(): void: The callback.
|
|
| vnode | (vnode: !VNode) => ? |
vnode* !VNode: The VNode.
|
|
| event | (event: !Event) => !Event |
event* !Event: The event.
|
|
| afterMount | (component: !Component) => ? |
component* !Component: The component.
|
|
| afterUpdate | (component: !Component) => ? |
component* !Component: The component.
|
|
| beforeUnmount | (component: !Component) => ? |
component* !Component: The component.
|
/.documentary/section-breaks/-1.svg
Most of documentation comes from Preact authors, for example https://preactjs.com/guide/api-reference.
The externs were created to be used with JavaScript Compiler: https://compiler.page.
|
© Art Deco™ for Depack 2020 |
|---|