Skip to main content
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. Ideal 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.