@nexim/flux-hook
v1.0.0
Published
React hooks for Alwatr's flux architecture patterns with TypeScript type safety
Maintainers
Readme
@nexim/flux-hook
Overview
@nexim/flux-hook provides React hooks for seamlessly integrating Alwatr's flux architecture patterns into your React applications. It includes hooks for managing signals, triggers, and contexts with TypeScript type safety.
Features
useSignal: Subscribe to and manage Alwatr Signal statesuseTrigger: Handle Alwatr Trigger eventsuseContext: Manage Alwatr Context states- TypeScript support with full type safety
- Automatic cleanup of subscriptions
- Performance optimized with React's lifecycle
Installation
Install the package using npm or yarn:
npm install @nexim/flux-hook
# Or using yarn
yarn add @nexim/flux-hookDocumentation
Read full documentation here.
