Hi!
I think you made typos in your last example using withSize in your Readme.
You are exporting a component called MyComponent whereas you declared a function called myComponent.
I thing the last paragraph should be:
import React from "react";
import { withSize } from "react-adaptive";
const MyComponent = ({ size }) => (<div>My own size is {size.width}</div>);
export default withSize(MyComponent);
Hi! I think you made typos in your last example using
withSize
in your Readme. You are exporting a component calledMyComponent
whereas you declared a function calledmyComponent
.I thing the last paragraph should be: