Prompt Buddy logoPrompt Buddy

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.

Import to Prompt Buddy

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

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/preact-option-hooks-workflow-guide.mdA 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.textA 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

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://preactjs.com/guide/v10/options