Skip to content

Home

MEDHIRA Logo

Engineering Intelligence Across Everything


Typed React hooks for object state with shallow updates — built for React 18+ and TypeScript.

Features

  • useDefaultReducer — object state with patchState(Partial<S>)
  • Full TypeScript — inferred state shape and patch types
  • Dual module format — ESM and CommonJS
  • No runtime dependencies — only react as 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"]

Contact


MEDHIRA — Engineering Intelligence Across Everything