jotai

Jotai adapter for json-render's StateStore interface. Use when integrating json-render with Jotai for state management via @json-render/jotai.

By vercel-labs · 946 installs

npx skills add vercel-labs/json-render --skill jotai

Source repository · Upstream listing

@json render/jotai Jotai adapter for json render's StateStore interface. Wire a Jotai atom as the state backend for json render. Installation Usage With a Shared Jotai Store When your app already uses a Jotai <Provider with a custom store, pass it so both json render and your components share the same state: API jotaiStateStore(options) Creates a StateStore backed by a Jotai atom. Option Type Required Description atom WritableAtom<StateModel, [StateModel], void Yes A writable atom holding the state model store Jotai Store No The Jotai store instance. Defaults to a new store. Pass your own to share state with <Provider .