Skip to content

Commit 45a9869

Browse files
committed
Update app.js
1 parent d20a8ba commit 45a9869

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/auth-flow/app.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react'
2-
import { render, findDOMNode } from 'react-dom'
2+
import { render } from 'react-dom'
33
import { Router, Route, Link, History } from 'react-router'
44
import { createHistory, useBasename } from 'history'
55
import auth from './auth'
@@ -72,8 +72,8 @@ var Login = React.createClass({
7272
handleSubmit(event) {
7373
event.preventDefault()
7474

75-
var email = findDOMNode(this.refs.email).value
76-
var pass = findDOMNode(this.refs.pass).value
75+
var email = this.refs.email.value
76+
var pass = this.refs.pass.value
7777

7878
auth.login(email, pass, (loggedIn) => {
7979
if (!loggedIn)

0 commit comments

Comments
 (0)