Browse Source

[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
main
Scott Feeney 9 years ago
parent
commit
2464d81705
  1. 2
      tips/18-use-react-with-other-libraries.ko-KR.md
  2. 2
      tips/18-use-react-with-other-libraries.md

2
tips/18-use-react-with-other-libraries.ko-KR.md

@ -16,7 +16,7 @@ var App = React.createClass({
},
componentDidMount: function() {
$(ReactDOM.findDOMNode(this.refs.placeholder)).append($('<span />'));
$(this.refs.placeholder).append($('<span />'));
},
componentWillUnmount: function() {

2
tips/18-use-react-with-other-libraries.md

@ -16,7 +16,7 @@ var App = React.createClass({
},
componentDidMount: function() {
$(ReactDOM.findDOMNode(this.refs.placeholder)).append($('<span />'));
$(this.refs.placeholder).append($('<span />'));
},
componentWillUnmount: function() {

Loading…
Cancel
Save