Created
March 25, 2019 10:15
-
-
Save BretCameron/4e748a73774c20919b666d49c57a217b to your computer and use it in GitHub Desktop.
The constructor method in our Movies.js React component
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
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