Created
November 21, 2016 12:44
-
-
Save pablopaul/afc3ecf795a63d6c66493e12c7e52571 to your computer and use it in GitHub Desktop.
Redux Store Subscriber Demo
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
// Logs 'x' | |
store.dispatch(insertCharacter('x')); | |
// Logs 'xy' | |
store.dispatch(insertCharacter('y')); | |
// `removeCharacter` is an action creator wrapping the `BACKSPACE` action | |
// Logs 'x' | |
store.dispatch(removeCharacter()); | |
// Logs '' | |
store.dispatch(removeCharacter()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment