Created
July 9, 2019 10:19
-
-
Save adamkleingit/8c75bb8d6fdc6e5fc6659a22e2c91225 to your computer and use it in GitHub Desktop.
Simple Reusable Stores Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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