Created
May 18, 2017 09:55
-
-
Save stevermeister/8501a3223d5d6bd70bb42ce2a088a3b4 to your computer and use it in GitHub Desktop.
create-store.redux-mini.js
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
function createStore(reducer, initialState) { | |
var currentReducer = reducer; | |
var currentState = initialState; | |
return { | |
getState() { | |
return currentState; | |
} | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment