What problem does it solve?
This Skill eliminates the need to build custom state adapters for json-render when your project already uses Zustand for global state management, bridging the gap between Zustand's vanilla store API and json-render's required StateStore interface.
Core Features & Use Cases
- Zustand StateStore Adapter: Provides a typed zustandStateStore function that maps any Zustand vanilla store to json-render's StateStore contract.
- Nested State Support: Includes optional selector and updater parameters to work with nested state slices in complex Zustand store structures.
- Use Case: For React or React Native apps using json-render for generative UI that already rely on Zustand for global state, this Skill lets you reuse your existing Zustand store instead of setting up a separate state solution for json-render.
Quick Start
Use the zustand skill to connect your existing Zustand vanilla store to a json-render StateProvider for shared state management across your generative UI components.