From 2f21dc6f76243fb90a7cb9fa142ff8ab50de8eaf Mon Sep 17 00:00:00 2001 From: Jim Date: Fri, 8 Jan 2016 20:30:25 -0800 Subject: [PATCH] Merge pull request #5813 from graue/tips-unneeded-finddomnode [docs] remove unnecessary findDOMNode from example (cherry picked from commit ea0ac61945724288d133ba69a7355701aebd282a) --- docs/tips/18-use-react-with-other-libraries.ko-KR.md | 2 +- docs/tips/18-use-react-with-other-libraries.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/tips/18-use-react-with-other-libraries.ko-KR.md b/docs/tips/18-use-react-with-other-libraries.ko-KR.md index d0ec83e9d5..9dfd1d46c5 100644 --- a/docs/tips/18-use-react-with-other-libraries.ko-KR.md +++ b/docs/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($('')); + $(this.refs.placeholder).append($('')); }, componentWillUnmount: function() { diff --git a/docs/tips/18-use-react-with-other-libraries.md b/docs/tips/18-use-react-with-other-libraries.md index f7bb2cb32a..fc5634fa8e 100644 --- a/docs/tips/18-use-react-with-other-libraries.md +++ b/docs/tips/18-use-react-with-other-libraries.md @@ -16,7 +16,7 @@ var App = React.createClass({ }, componentDidMount: function() { - $(ReactDOM.findDOMNode(this.refs.placeholder)).append($('')); + $(this.refs.placeholder).append($('')); }, componentWillUnmount: function() {