Created
July 25, 2021 06:05
-
-
Save MeetMartin/9d45b4e1698b3f94e90f8e762fd943f6 to your computer and use it in GitHub Desktop.
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
| // /src/store/actions.js | |
| import types from "./types"; | |
| export const useActions = (state, dispatch) => ({ | |
| requestRandomQuote: payload => dispatch({type: types.REQUEST_RANDOM_QUOTE, payload: payload}) | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment