From 8f05381eea040f39bfc4cb982a10dcde06a9e441 Mon Sep 17 00:00:00 2001 From: maslianok Date: Sun, 25 Feb 2018 15:09:07 +0200 Subject: [PATCH 1/3] 2.0.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 6bd375d..8c9d016 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "author": "Vitalii Maslianok (https://github.com/maslianok)", - "version": "1.1.0", + "version": "2.0.0", "bugs": { "url": "https://github.com/maslianok/react-resize-detector/issues" }, From 36fec4e587257c6c277a7ed33d296ffaa95f50aa Mon Sep 17 00:00:00 2001 From: maslianok Date: Sun, 25 Feb 2018 15:10:07 +0200 Subject: [PATCH 2/3] bump version --- lib/components/ResizeDetector.js | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/components/ResizeDetector.js b/lib/components/ResizeDetector.js index 703f0ea..6284fb8 100644 --- a/lib/components/ResizeDetector.js +++ b/lib/components/ResizeDetector.js @@ -76,7 +76,6 @@ var ResizeDetector = function (_PureComponent) { value: function render() { var _this2 = this; - console.log('RENDER'); return _react2.default.createElement('div', { style: styles, ref: function ref(el) { From 8b0194dcc2e754ab2ae3a5aab3aacaab7173c0b6 Mon Sep 17 00:00:00 2001 From: maslianok Date: Sun, 25 Feb 2018 15:14:00 +0200 Subject: [PATCH 3/3] fix example --- examples/src/App.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/examples/src/App.js b/examples/src/App.js index 7730502..6c0663a 100644 --- a/examples/src/App.js +++ b/examples/src/App.js @@ -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 }); @@ -60,7 +51,7 @@ class App extends Component {
Main div resized {this.state.count} times
- + );