Skip to content

Commit f686afd

Browse files
authored
Merge pull request #337 from gaohailang/patch-1
Fix README show tip usage error
2 parents 5686c8f + 1f85622 commit f686afd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ import {findDOMNode} from 'react-dom'
114114
import ReactTooltip from 'react-tooltip'
115115

116116
<p ref='foo' data-tip='tooltip'></p>
117-
<button onClick={() => { ReactTooltip.show(this.refs.foo) }}></button>
117+
<button onClick={() => { ReactTooltip.show(findDOMNode(this.refs.foo)) }}></button>
118118
<ReactTooltip />
119119
```
120120

0 commit comments

Comments
 (0)