From 0c6b909322f7ce6b274063e264bd15519f683d6e Mon Sep 17 00:00:00 2001 From: Scott Feeney Date: Fri, 8 Jan 2016 17:19:28 -0800 Subject: [PATCH] [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 --- 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() {