Library
UI Componentspreact-portal
Portal utility for modals, overlays and detached DOM rendering.
Native PreactActive
Native Preact
Built for Preact and does not require a React compatibility layer.
Packagepreact-portal
npm install preact-portalexport function Example() { return <section>preact-portal can be evaluated inside a Preact component.</section>;}Known limitations
- PreactHub still needs project-specific verification notes for versions, bundle impact and edge cases.
Introduction
preact-portal is tracked in PreactHub because it is relevant for Preact applications, migrations, ecosystem comparisons or adjacent tooling.
Preact configuration
No `preact/compat` alias is required for the primary API.
SSR notes
SSR support should be treated cautiously; load this library on the client when it depends on browser APIs.
Islands notes
preact-portal can be used from interactive islands as long as initialization is scoped to the island root and cleaned up when necessary.