Skip to content

Commit

Permalink
Merge pull request romainberger#19 from austinpray/patch-1
Browse files Browse the repository at this point in the history
Use traditional bind syntax in README
  • Loading branch information
romainberger authored Jun 23, 2016
2 parents e42db4e + e6ac353 commit 227726b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class MyComponent extends React.Component {
render() {
return (
<div>
<p id="text" onMouseEnter={::this.showTooltip} onMouseLeave={::this.hideTooltip}>This is a cool component</p>
<p id="text" onMouseEnter={this.showTooltip.bind(this)} onMouseLeave={this.hideTooltip.bind(this)}>This is a cool component</p>
<ToolTip active={this.state.isTooltipActive} position="top" arrow="center" parent="#text">
<div>
<p>This is the content of the tooltip</p>
Expand Down

0 comments on commit 227726b

Please sign in to comment.