Skip to content

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.
Clone this wiki locally