Skip to content

Commit 2f21dc6

Browse files
jimfbzpao
authored andcommitted
Merge pull request facebook#5813 from graue/tips-unneeded-finddomnode
[docs] remove unnecessary findDOMNode from example (cherry picked from commit ea0ac61)
1 parent e45c534 commit 2f21dc6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ var App = React.createClass({
1616
},
1717

1818
componentDidMount: function() {
19-
$(ReactDOM.findDOMNode(this.refs.placeholder)).append($('<span />'));
19+
$(this.refs.placeholder).append($('<span />'));
2020
},
2121

2222
componentWillUnmount: function() {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ var App = React.createClass({
1616
},
1717

1818
componentDidMount: function() {
19-
$(ReactDOM.findDOMNode(this.refs.placeholder)).append($('<span />'));
19+
$(this.refs.placeholder).append($('<span />'));
2020
},
2121

2222
componentWillUnmount: function() {

0 commit comments

Comments
 (0)