Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
interface Options
import { type Options } from "https://deno.land/x/netzo@0.3.66/deps/preact.ts";

Global options for preact

Methods

optional
vnode(vnode: VNode): void

Attach a hook that is invoked whenever a VNode is created.

optional
unmount(vnode: VNode): void

Attach a hook that is invoked immediately before a vnode is unmounted.

optional
diffed(vnode: VNode): void

Attach a hook that is invoked after a vnode has rendered.

optional
event(e: Event): any
optional
requestAnimationFrame(callback: () => void): void
optional
debounceRendering(cb: () => void): void
optional
useDebugValue(value: string | number): void
optional
_addHookName(name: string | number): void
optional
__suspenseDidResolve(vnode: VNode, cb: () => void): void
optional
attr(name: string, value: any): string | void

Customize attribute serialization when a precompiled JSX transform is used.