Skip to content

Instantly share code, notes, and snippets.

@adamkleingit
Created July 9, 2019 10:19
Show Gist options
  • Save adamkleingit/8c75bb8d6fdc6e5fc6659a22e2c91225 to your computer and use it in GitHub Desktop.
Save adamkleingit/8c75bb8d6fdc6e5fc6659a22e2c91225 to your computer and use it in GitHub Desktop.
Simple Reusable Stores Example
import {createStore} from 'reusable';
export const useLocale = createStore(() => useState('en'));
export const useSomething = createStore(() => useReducer(...));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment