Skip to content

Instantly share code, notes, and snippets.

@BretCameron
Created March 25, 2019 10:15
Show Gist options
  • Save BretCameron/4e748a73774c20919b666d49c57a217b to your computer and use it in GitHub Desktop.
Save BretCameron/4e748a73774c20919b666d49c57a217b to your computer and use it in GitHub Desktop.
The constructor method in our Movies.js React component
constructor(props) {
super(props);
this.state = { data: {} };
this.fetchPostData = this.fetchPostData.bind(this);
this.renderMovies = this.renderMovies.bind(this);
this.populatePageAfterFetch = this.populatePageAfterFetch.bind(this);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment