Skip to content

Instantly share code, notes, and snippets.

@jprivillaso
Last active October 1, 2017 16:24
Show Gist options
  • Save jprivillaso/fcd00a3238702d73d1c9564c91b2200d to your computer and use it in GitHub Desktop.
Save jprivillaso/fcd00a3238702d73d1c9564c91b2200d to your computer and use it in GitHub Desktop.
class App extends React.Component {
constructor() {
super();
this.methodA = this.methodA.bind(this);
this.methodB = this.methodB.bind(this);
this.methodC = this.methodC.bind(this);
}
componentDidMount() {
//...
}
componentDidUpdate() {
//...
}
methodA() {
//...
}
methodB() {
//...
}
methodC() {
//...
}
render() {
//...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment