Skip to content
react-global-state-hooks
Documentation

Small API.
Clear mental model.

Start with a shared store. Add precision, structure and visibility as your application grows.

The mental model
01 / 03
counter.tsx
const useCount = createGlobalState(0);

const [count, setCount] = useCount();
One store
Any component

A hook for components.
A state API for everything else.

Find your way

A guide for every layer.

When the state is the evidence.

Connect your browser, terminal and coding agent.

↑↓ Navigate ↵ Open Esc CloseRGSH docs
Get started

Shared state. Precise subscriptions.
Built-in DevTools.