Last active
July 14, 2017 20:00
-
-
Save btg5679/ea94f4e58e3ed4e1d96713622f0efcf5 to your computer and use it in GitHub Desktop.
ReduxIntro1
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
import { createStore } from 'redux'; | |
// Store | |
const dataStore = createStore(r, { | |
beerlist: { | |
name: 'IPA', | |
abv: 7.4 | |
}, | |
beersOnTap: 1, | |
liveMusicHistory: { | |
bandName: 'Bahamas', | |
gigDate: '2017-01-01' | |
}, | |
... | |
}); | |
// Called any time an action is dispatched | |
dataStore.subscribe(()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment