Jotai — управление состоянием в json-render

★ 8.1 · vibe-coding

Работа с состоянием через Jotai is a Claude Code skill that wires Jotai as the state backend for json-render by implementing the `StateStore` interface via the `@json-render/jotai` adapter. Reach for it when your React app already uses Jotai and you want json-render to read and write through the same atoms rather than maintaining a separate store — or when `useAtom()` hooks and json-render components need to share a single source of truth without state duplication. The core of the skill is `jotaiStateStore({ atom, store })`: it accepts a writable Jotai atom and an optional existing Jotai store instance, then wraps everything in `<StateProvider>` from `@json-render/react`. Install via npm: `@json-render/jotai`, `@json-render/core`, `@json-render/react`, and `jotai`. The direction here is connecting an existing Jotai store into json-render, not managing React state outside json-render — for other state libraries different adapters apply. A good fit for projects that already run on Jotai and render UI from JSON schemas; pointless if Jotai is not already in the stack.