# khangle.dev docs > Command-line tools and libraries by Khang Le that help Claude Code, Codex and other coding agents read Jira, Outline and Figma, follow your rules, and share state in React apps. Every page below is plain Markdown. Each library also has all of its pages in one file (llms-full.txt), which is the quickest way to load one tool into context. ## @khanglvm/react Shared state with rollback, typed translations and async events between React components. Install: `npm i @khanglvm/react` (not on npm yet). Source: https://github.com/khanglvm/react - [All @khanglvm/react docs in one file](https://docs.khangle.dev/react/llms-full.txt) - [@khanglvm/react](https://docs.khangle.dev/react.md): React utilities for TypeScript apps in React or Next.js App Router, each one usable on its own. - [Install](https://docs.khangle.dev/react/install.md): Install the package from npm. It needs React 18 or 19. - [Shared state with createContextState](https://docs.khangle.dev/react/state.md): createContextState() creates a typed store and the hooks to use it. A Provider owns the state. Components read slices with selectors, and each one rerenders only when its selected value changes. Updates take a partial object or an Immer draft function, and each update returns a function that undoes it. - [Typed translations](https://docs.khangle.dev/react/translation.md): Each dictionary entry holds every language side by side, so TypeScript reports a missing language and autocompletes every key. Components read text through a hook that follows your app's current language. When the language changes, every component that uses the hook rerenders in the new language: no page reload and no dictionary download, because the dictionaries are ordinary TypeScript modules in your bundle. - [Async events between components](https://docs.khangle.dev/react/events.md): createEventMethod() gives you a typed event bus for mounted components. One component emits an event; every mounted listener for that name runs; the emitter can await their answers. Use it when the emitter and the listeners are far apart in the tree or live in different packages, and props or a shared store would couple them. - [Next.js App Router](https://docs.khangle.dev/react/nextjs.md): The package works in the App Router with one rule: hooks and stores run in client components, and plain functions run anywhere. This page lists what runs where and the setup that follows from it. The Next.js example puts it all together. - [Helpers and utility types](https://docs.khangle.dev/react/helpers.md): Import these through @khanglvm/react/helpers; they are not exported from the package root. - [Use with coding agents](https://docs.khangle.dev/react/agents.md): The repository includes an agent skill with the setup recipes, API rules and known pitfalls. Install it into your project with: