Skip to content

Commit

Permalink
Document short-hand, and bump to 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewIngram committed Jun 25, 2015
1 parent 4c76914 commit 94eedc8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ class MyComponent extends React.Component {
<At value="2dppx"><p>(2x) Retina-ish</p></At>
<At value="3dppx"><p>(3x) The future</p></At>
</Respond>

<Respond to="max-width" at="850px">
Only visible up to 850px
</Respond>
</div>
);
}
Expand Down
2 changes: 1 addition & 1 deletion example/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const Index = React.createClass({

<Respond to="max-width" at="850px">
Only visible up to 850px
</Respond>
</Respond>

</main>
);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-respond-to",
"version": "0.1.1",
"version": "0.2.0",
"description": "Responsive Component for React",
"main": "dist/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/At.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const At = React.createClass({

if (typeof result === 'string') {
result = <span>{result}</span>;
}
}

return result;
},
Expand Down

0 comments on commit 94eedc8

Please sign in to comment.