Skip to content

Reactivity-store

A React state-management tool power by Reactive api

Simple to use reactivity-store in your project

import { createState } from 'reactivity-store';

const useCount = createState(
  () => ({ count: 0 }), 
  { withActions: (s) => ({ add: () => s.count++ }) 
});

Reactive count component: