Skip to content

Commit

Permalink
docs:
Browse files Browse the repository at this point in the history
  • Loading branch information
foxhound87 committed Nov 13, 2016
1 parent b2562ce commit 216c920
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,11 @@ import { MatchMediaProvider } from 'mobx-react-matchmedia';

import { observer } from 'mobx-react';

const Test = ({ breakpoints }) => (
const Test = observer(({ breakpoints }) => (
<div>
{breakpoints.sm ? 'YES' : 'NO'}
</div>
);

Test.propTypes = {
breakpoints: React.PropTypes.object,
};

export default observer(Test);
));

// now resize the browser window to see the changes

Expand Down

0 comments on commit 216c920

Please sign in to comment.