Skip to content

Commit 3de3957

Browse files
committed
update docs
1 parent 27240b4 commit 3de3957

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ This allows you to DRY up statements liks this:
1010
<div className={this.props.shouldHide ? 'hidden' : ''}>
1111
```
1212

13-
[View demo](https://jsfiddle.net/ccnokes/oqttsu83/)
14-
1513
Example usage:
1614

1715
```javascript
@@ -36,7 +34,17 @@ export default React.createClass({
3634
});
3735

3836
```
39-
The component supports the `hide` or `show` props and expects a boolean for both.
37+
[View demo](https://jsfiddle.net/ccnokes/oqttsu83/)
38+
39+
Note that if you are using a version under 0.1.1, you will have to compile react-toggle-display's JSX yourself. I recommend just updating to 1.0 so you don't have to wory about that. No breaking API changes in 1.0.
40+
41+
## Props
42+
43+
`hide` - boolean
44+
45+
`show` - boolean
46+
47+
The two props are simply the inverse of each other. Using both at the same time will result in canceling each other out.
4048

4149

4250
## Install

0 commit comments

Comments
 (0)