Getting Started

Contection extends React Context API with fine-grained subscriptions and computed values.

Installation 

npm
pnpm
yarn
bun
npm install contection
pnpm add contection
yarn add contection
bun add contection

Requirements: React 18+ (React 19 recommended), TypeScript 4.5+ (optional, types included)

Features 

  • Granular Subscriptions - Subscribe to specific store keys
  • Selective Re-renders - Components update only when subscribed keys change
  • Computed Values - Derive state with mutation functions
  • Type-Safe - Full TypeScript support
  • SSR Compatible - Works with Next.js and other SSR frameworks

Next 

Return to navigation