-
-
Save vhnam/69c90b4df305f2fcf7406066a6e43e0b to your computer and use it in GitHub Desktop.
Redux __ Step 5
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
store.getState() | |
// Output: {articles: Array(0)} | |
store.subscribe(() => console.log('Look ma, Redux!!')) | |
store.dispatch( addArticle({ name: 'React Redux Tutorial for Beginners', id: 1 }) ) | |
// Output: Look ma, Redux!! | |
store.getState() | |
// Output: {articles: Array(1)} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment