@samitouri / QOS-React-2 / commits / 210dc90c95

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.

Thomas Röggla committed May 19, 2015 at 18:32 UTC 210dc90c95631c53dbe081a1210f7208f6bcac17
2 files changed +2 -2
docs/tips/18-use-react-with-other-libraries.ko-KR.md
+1 -1
@@ -16,7 +16,7 @@ var App = React.createClass({
16 },
17
18 componentDidMount: function() {
19 - $(this.refs.placeholder.getDOMNode()).append($('<span />'));
19 + $(React.findDOMNode(this.refs.placeholder)).append($('<span />'));
20 },
21
22 componentWillUnmount: function() {
docs/tips/18-use-react-with-other-libraries.md
+1 -1
@@ -16,7 +16,7 @@ var App = React.createClass({
16 },
17
18 componentDidMount: function() {
19 - $(this.refs.placeholder.getDOMNode()).append($('<span />'));
19 + $(React.findDOMNode(this.refs.placeholder)).append($('<span />'));
20 },
21
22 componentWillUnmount: function() {