Created
November 10, 2016 19:55
-
-
Save sminutoli/30ee4125dc2b9ee741a1890d9165147a to your computer and use it in GitHub Desktop.
TDD Action Creators paso 2
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 actionTypes = { | |
TRANSACTION_SUCCESS: 'my action type' | |
} | |
export actionTypes; | |
export function transactionSuccess(){ | |
return { | |
type: actionTypes.TRANSACTION_SUCCESS // podría haber devuelto 'my action type' | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment