Home
Engineering Intelligence Across Everything
Typed React hooks for object state with shallow updates — built for React 18+ and TypeScript.
Features
useDefaultReducer— object state withpatchState(Partial<S>)- Full TypeScript — inferred state shape and patch types
- Dual module format — ESM and CommonJS
- No runtime dependencies — only
reactas a peer dependency
Quick example
import { useDefaultReducer } from 'medhira-react-typescript-hooks';
const { state, patchState } = useDefaultReducer({ count: 0, label: '' });
patchState({ count: state.count + 1 });
Package flow
flowchart LR
A["npm install"] --> B["import from package root"]
B --> C["useDefaultReducer"]
C --> D["state + patchState"]
Links
Contact
MEDHIRA — Engineering Intelligence Across Everything