++++

The simplest way to manage React state.

tiny · fully typed · zero dependencies

$npm install unistash
++
const useCounter = createStore({
  state: { count: 0 },
  actions: {
    inc: (s) => ({ count: s.count + 1 }),
    dec: (s) => ({ count: s.count - 1 }),
  },
})
0
++

Zero dependencies

One install. No peer libraries.

Fully typed

Autocomplete on state, computed & actions.

Tiny

A few hundred bytes of engine.

Selectors

Fine-grained re-renders, opt-in.

SSR-ready

Next.js, no hydration mismatch.

No boilerplate

No providers, no reducers.

++

Ready in one import.

Read the docs →