We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e0e3d32 + 37bd4d2 commit ccfc65eCopy full SHA for ccfc65e
examples/master-detail/app.js
@@ -1,4 +1,4 @@
1
-import React from 'react';
+import React, { findDOMNode } from 'react';
2
import HashHistory from 'react-router/lib/HashHistory';
3
import { Router, Navigation, Route, Link } from 'react-router';
4
import ContactStore from './ContactStore';
@@ -121,8 +121,8 @@ var NewContact = React.createClass({
121
event.preventDefault();
122
123
ContactStore.addContact({
124
- first: this.refs.first.getDOMNode().value,
125
- last: this.refs.last.getDOMNode().value
+ first: findDOMNode(this.refs.first).value,
+ last: findDOMNode(this.refs.last).value
126
}, (contact) => {
127
this.transitionTo(`/contact/${contact.id}`);
128
});
0 commit comments