Created
May 15, 2017 16:50
-
-
Save ohager/e07b481a806f177d67bf19c09c562ed0 to your computer and use it in GitHub Desktop.
Composition Example
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
| import {createStore, composeStoreActionHandler} from "../StoreFactory"; | |
| import ItemListActionHandler from "./actionHandler/ItemListActionHandler"; | |
| import ItemActionHandler from "./actionHandler/ItemActionHandler"; | |
| import UserActionHandler from "./actionHandler/UserActionHandler"; | |
| const actionHandler = composeStoreActionHandler( | |
| ItemListActionHandler, | |
| ItemActionHandler, | |
| UserActionHandler | |
| ); | |
| export default createStore( actionHandler ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment