Created
July 18, 2014 00:23
-
-
Save blixt/5c24f8ac1772c6f76129 to your computer and use it in GitHub Desktop.
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
// Set up the feed node. | |
var feedNode = <feed onShowNewStories={store.dequeue.bind(store)} />; | |
React.renderComponent(feedNode, document.getElementById('react')); | |
// Keep track of the state of the feed service. | |
store.on('statechange', function() { | |
feedNode.setState({storeState: store.state}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment