Skip to demo
ilokesto/ store

Store.

A little home for your state.

A small cart, one Store

Change quantity or wrapping. The subscribed order summary updates immediately.

Workshop notebook

$24 / copy

Quantity
1
Total $24
store.tsxCore snippet
const cart = new Store({  quantity: 1, gift: false,});cart.subscribe(() => {  render(cart.getState());});cart.setState(state => ({  ...state,  quantity: state.quantity + 1,}));
Setup and imports in the docsFull guide