Skip to content

Commit

Permalink
fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
maslianok committed Feb 25, 2018
1 parent 36fec4e commit 8b0194d
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions examples/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,6 @@ class App extends Component {
count: 0,
};

componentDidMount() {
setTimeout(() => {
console.log('CHANGE!');
this.setState({
handleWidth: true,
});
}, 10000);
}

onResize = () => this.setState({ count: this.state.count + 1 });

hideLeftPanel = () => this.setState({ leftPanel: !this.state.leftPanel });
Expand All @@ -60,7 +51,7 @@ class App extends Component {

<div style={s.text}>Main div resized {this.state.count} times</div>

<ResizeDetector handleWidth={this.state.handleWidth} skipOnMount onResize={this.onResize} />
<ResizeDetector handleWidth handleHeight skipOnMount onResize={this.onResize} />
</div>
</div>
);
Expand Down

0 comments on commit 8b0194d

Please sign in to comment.