From 21c8c2263e24e3d653197bf4cf0f5b5a0dacb4f1 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. --- tips/18-use-react-with-other-libraries.ko-KR.md | 2 +- tips/18-use-react-with-other-libraries.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tips/18-use-react-with-other-libraries.ko-KR.md b/tips/18-use-react-with-other-libraries.ko-KR.md index c4aeab42..52518a04 100644 --- a/tips/18-use-react-with-other-libraries.ko-KR.md +++ b/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/tips/18-use-react-with-other-libraries.md b/tips/18-use-react-with-other-libraries.md index 094f2bdc..14d09623 100644 --- a/tips/18-use-react-with-other-libraries.md +++ b/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() {