Skip to content

Commit 37bd4d2

Browse files
committed
Use react.findDOMNode() instead of deprecated getDOMNode()
1 parent 26bed74 commit 37bd4d2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/master-detail/app.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react';
1+
import React, { findDOMNode } from 'react';
22
import HashHistory from 'react-router/lib/HashHistory';
33
import { Router, Navigation, Route, Link } from 'react-router';
44
import ContactStore from './ContactStore';
@@ -121,8 +121,8 @@ var NewContact = React.createClass({
121121
event.preventDefault();
122122

123123
ContactStore.addContact({
124-
first: this.refs.first.getDOMNode().value,
125-
last: this.refs.last.getDOMNode().value
124+
first: findDOMNode(this.refs.first).value,
125+
last: findDOMNode(this.refs.last).value
126126
}, (contact) => {
127127
this.transitionTo(`/contact/${contact.id}`);
128128
});

0 commit comments

Comments
 (0)