Skip to content

Commit

Permalink
Merge pull request #5813 from graue/tips-unneeded-finddomnode
Browse files Browse the repository at this point in the history
[docs] remove unnecessary findDOMNode from example
  • Loading branch information
jimfb committed Jan 9, 2016
2 parents 708e1b3 + 0c6b909 commit ea0ac61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/tips/18-use-react-with-other-libraries.ko-KR.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var App = React.createClass({
},

componentDidMount: function() {
$(ReactDOM.findDOMNode(this.refs.placeholder)).append($('<span />'));
$(this.refs.placeholder).append($('<span />'));
},

componentWillUnmount: function() {
Expand Down
2 changes: 1 addition & 1 deletion docs/tips/18-use-react-with-other-libraries.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var App = React.createClass({
},

componentDidMount: function() {
$(ReactDOM.findDOMNode(this.refs.placeholder)).append($('<span />'));
$(this.refs.placeholder).append($('<span />'));
},

componentWillUnmount: function() {
Expand Down

0 comments on commit ea0ac61

Please sign in to comment.