React hooks for Alwatr's flux architecture patterns with TypeScript type safety
npm install @nexim/flux-hook!NPM Version
!npm bundle size
!Build & Lint & Test
!NPM Downloads
!NPM License
@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.
- useSignal: Subscribe to and manage Alwatr Signal states
- useTrigger: Handle Alwatr Trigger events
- useContext: Manage Alwatr Context states
- TypeScript support with full type safety
- Automatic cleanup of subscriptions
- Performance optimized with React's lifecycle
Install the package using npm or yarn:
``sh
npm install @nexim/flux-hook
Read full documentation here.