Skip to content

Commit

Permalink
fix warning "getInitialState was defined on Scrollbars, a plain JavaS…
Browse files Browse the repository at this point in the history
…cript class..."
  • Loading branch information
StipJey committed Apr 20, 2017
1 parent adfbc23 commit a30b42a
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/Scrollbars/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,9 @@ export default class Scrollbars extends Component {
this.handleDrag = this.handleDrag.bind(this);
this.handleDragEnd = this.handleDragEnd.bind(this);

this.state = this.getInitialState();
}

getInitialState() {
return {
didMountUniversal: false
};
this.state = {
didMountUniversal: false
};
}

componentDidMount() {
Expand Down

0 comments on commit a30b42a

Please sign in to comment.