Skip to content

Instantly share code, notes, and snippets.

@gate5th

gate5th/App.js

Created Sep 12, 2018
Embed
What would you like to do?
oldschoolshuffle
//App.js
class App extends Component {
constructor(props){
super(props);
this.state = {
dataReceived: false,
posts: [],
authors: [],
featuredPostIndex: 0,
otherPosts: [],
}
}
//... rest of component we already wrote (including render method) down here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment