[docs] remove unnecessary findDOMNode from example
This call is not needed anymore due to https://facebook.github.io/react/blog/2015/10/07/react-v0.14.html#dom-node-refs
Scott Feeney committed
Jan 8, 2016 at 17:19 UTC
0c6b909322f7ce6b274063e264bd15519f683d6e
2 files changed
+2
-2
docs/tips/18-use-react-with-other-libraries.ko-KR.md
+1
-1
@@ -16,7 +16,7 @@ var App = React.createClass({
16
},
17
18
componentDidMount: function() {
19
- $(ReactDOM.findDOMNode(this.refs.placeholder)).append($('<span />'));
19
+ $(this.refs.placeholder).append($('<span />'));
20
},
21
22
componentWillUnmount: function() {
docs/tips/18-use-react-with-other-libraries.md
+1
-1
@@ -16,7 +16,7 @@ var App = React.createClass({
16
},
17
18
componentDidMount: function() {
19
- $(ReactDOM.findDOMNode(this.refs.placeholder)).append($('<span />'));
19
+ $(this.refs.placeholder).append($('<span />'));
20
},
21
22
componentWillUnmount: function() {