preact · Preact Docs
Preact Option Hooks
Explains how to use Preact's internal callback system to intercept and modify the rendering lifecycle, enabling the creation of plugins, devtools, or library extensions.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
Preact Option Hooks
Explains how to use Preact's internal callback system to intercept and modify the rendering lifecycle, enabling the creation of plugins, devtools, or library extensions.
When To Use
Use when you need to extend Preact's core features, build custom developer tools, or create library addons that intercept the rendering process.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/preact-option-hooks-workflow-guide.md | A comprehensive guide covering the essentials, debugging, testing, and advanced usage of Preact option hooks. | Questions about a comprehensive guide covering the essentials, debugging, testing, and advanced usage of Preact option hooks. |
examples/preact-option-hooks-preact-options-vnode-hook-override.text | A code example demonstrating how to intercept and extend the preact options.vnode hook to log vnode information. | Exact payloads, commands, or snippets shown in A code example demonstrating how to intercept and extend the preact options.vnode hook to log vnode information. |
What This Skill Covers
- Guide Version: 11.x (preview) 10.x (current) 8.x
- Main sections:
Introduction,Essentials,Debug & Test,Advanced,Libraries.
Workflow
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - Do not add behavior or configuration that is not present in the attached source files.
Canonical source: https://preactjs.com/guide/v10/options