Last active
February 26, 2018 15:44
-
-
Save ShMcK/17b3a396576a425de091170ec141b1bf to your computer and use it in GitHub Desktop.
Consistent Action Creator
This file contains hidden or 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 anyActionCreator = (namespace, type) => (payload) => ({ | |
type: `${namespace}/${type}`, | |
payload | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment