Skip to content

Instantly share code, notes, and snippets.

@ilonacodes
Created December 9, 2018 15:54
Show Gist options
  • Save ilonacodes/a1bdf9a83f1315933ceca4bbb10eec8c to your computer and use it in GitHub Desktop.
Save ilonacodes/a1bdf9a83f1315933ceca4bbb10eec8c to your computer and use it in GitHub Desktop.
export const t = {
LOAD_USER_DATA: 'LOAD_USER_DATA',
LOAD_USER_DATA_SUCCESS: 'LOAD_USER_DATA_SUCCESS'
};
export const actions = ({
loadUserData: name => ({
type: t.LOAD_USER_DATA,
name
}),
loadUserDataSuccess: data => ({
type: t.LOAD_USER_DATA_SUCCESS,
data
})
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment