Skip to content

preact-context

Historical context helper predating modern Preact context APIs.

Native PreactArchived

Native Preact

Built for Preact and does not require a React compatibility layer.

Packagepreact-context

Facts at a glance
Preact compatibility
Native Preact
Tested Preact versions
Not documented
TypeScript
No TypeScript
SSR
SSR supported
Maintenance
Archived
License
Not documented
Last verified
Not yet verified
Terminal
npm install preact-context
Preact example
export function Example() {  return <section>preact-context 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-context 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

The library can participate in SSR-oriented workflows when browser-only APIs are guarded.

Islands notes

preact-context can be used from interactive islands as long as initialization is scoped to the island root and cleaned up when necessary.