-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove style and className, and monitor children instead
- Loading branch information
Showing
3 changed files
with
54 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,9 +22,9 @@ var Example = React.createClass({ | |
<div> | ||
<p className='msg'>{this.state.msg}</p> | ||
<div className='before'></div> | ||
<div className='sensor'> | ||
<VisibilitySensor containment={this.props.containment} onChange={this.onChange} /> | ||
</div> | ||
<VisibilitySensor containment={this.props.containment} onChange={this.onChange}> | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
gaearon
Author
Contributor
|
||
<div className='sensor' /> | ||
</VisibilitySensor> | ||
<div className='after'></div> | ||
</div> | ||
); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Good Idea, please increase major version next time, because this broke my code without I noticed that.