Last active
October 14, 2018 20:14
-
-
Save pahund/5f2e3685100beda361e0ec05600078bf to your computer and use it in GitHub Desktop.
Creating an application's initial state, including a Brick's initial state
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 { createInitialState as createInitialHackerNewsState } from '@modular-toolkit/demo-module'; | |
export default config => ({ | |
cookieDomain: config.cookieDomain, | |
bricks: { | |
hackerNews: createInitialHackerNewsState({ | |
topStories: [ | |
/* …some top stories data objects… */ | |
] | |
}) | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment