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.
1 parent 3b12b32 commit 0c0aa62Copy full SHA for 0c0aa62
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "react-sizeme",
3
- "version": "2.5.2",
+ "version": "2.6.0",
4
"description": "Make your React Components aware of their dimensions and position.",
5
"license": "MIT",
6
"main": "dist/react-sizeme.js",
src/component.js
@@ -45,8 +45,8 @@ export default class SizeMe extends Component {
45
createComponent = config => {
46
this.SizeAware = withSize(config)(({ children }) => children)
47
}
48
-
49
- onSize = size => this.setState({ size });
+
+ onSize = size => this.setState({ size })
50
51
render() {
52
const { SizeAware } = this
0 commit comments