Skip to content

Commit a30b42a

Browse files
committed
fix warning "getInitialState was defined on Scrollbars, a plain JavaScript class..."
1 parent adfbc23 commit a30b42a

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/Scrollbars/index.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,9 @@ export default class Scrollbars extends Component {
4747
this.handleDrag = this.handleDrag.bind(this);
4848
this.handleDragEnd = this.handleDragEnd.bind(this);
4949

50-
this.state = this.getInitialState();
51-
}
52-
53-
getInitialState() {
54-
return {
55-
didMountUniversal: false
56-
};
50+
this.state = {
51+
didMountUniversal: false
52+
};
5753
}
5854

5955
componentDidMount() {

0 commit comments

Comments
 (0)