We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5ee2585 + 086ee6d commit 3a7fcccCopy full SHA for 3a7fccc
src/components/Resizable.js
@@ -23,12 +23,12 @@ export default class Resizable extends React.Component {
23
}
24
25
componentDidMount() {
26
- window.addEventListener("resize", () => this.handleResize());
+ window.addEventListener("resize", this.handleResize);
27
this.handleResize();
28
29
30
componentWillUnmount() {
31
- window.removeEventListener("resize", () => this.handleResize());
+ window.removeEventListener("resize", this.handleResize);
32
33
34
handleResize() {
0 commit comments