Skip to Content
kkhangle.dev / docs

Install

Install the package from npm. It needs React 18 or 19.

npm install @khanglvm/react

The package ships ES modules with TypeScript declarations, and Immer is its only dependency. In Next.js App Router, files that use the hooks need 'use client' at the top; the Next.js guide lists what runs where.