From 210dc90c95631c53dbe081a1210f7208f6bcac17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20R=C3=B6ggla?= Date: Tue, 19 May 2015 18:32:07 +0200 Subject: [PATCH] Replaced call to deprected .getDOMNode() with React.findDOMNode(). The code sample in tip 18 in the docs contained a call to the .getDOMNode() method which has been deprecated. The method call was replaced with a call to React.findDOMNode(), which is the preferred way of getting DOM nodes from a ref. --- 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 c4aeab420e..52518a041b 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() { - $(this.refs.placeholder.getDOMNode()).append($('')); + $(React.findDOMNode(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 094f2bdc67..14d0962378 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() { - $(this.refs.placeholder.getDOMNode()).append($('')); + $(React.findDOMNode(this.refs.placeholder)).append($('')); }, componentWillUnmount: function() {