Skip to content

Instantly share code, notes, and snippets.

@gate5th
Created September 12, 2018 17:48
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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