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