Skip to content

Commit

Permalink
created BaseComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Odegard authored and Chris Odegard committed Jul 18, 2017
1 parent e743373 commit 7a42ac7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/BaseComponent.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { Component } from "react";

export class BaseComponent extends Component {
_bind(...methods) {
methods.forEach(method => this[method] = this[method].bind(this));
}
}

export default BaseComponent;

0 comments on commit 7a42ac7

Please sign in to comment.