Skip to main content

Documentation Index

Fetch the complete documentation index at: https://extension.js.org/llms.txt

Use this file to discover all available pages before exploring further.

Preact template preview

Create the project

npx extension@latest create my-extension --template=preact

What you get

The same component model as React with a 3kB runtime, configured with the standard preact/compat aliasing so most React libraries keep working. A good fit when bundle size matters, especially for content scripts injected into other peopleโ€™s pages.

Source

Browse the full source on GitHub: extension-js/examples/preact.