Last active
November 29, 2018 18:31
-
-
Save Jahans3/96806d9ac0ea161e768e2692e9eaaf56 to your computer and use it in GitHub Desktop.
Super Basic State
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
const state = {}; | |
export const getState = () => state; | |
export const setState = nextState => { | |
state = nextState; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment