Very little store for React.
I was inspired by recoil, but I didn't like the size and number of ways to solve one problem, I wanted to do something super small to communicate a couple of components in React.
Let’s take a look at the basic usage:
// file stores/counterStore.ts
const counterStore = createStore(0);
The setter interface fully corresponds to the react setter interface.
// in your component
const [value, setValue] = useStore<number>(counterStore);
Enjoy)