-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathSignInForm.js
More file actions
executable file
·34 lines (30 loc) · 897 Bytes
/
SignInForm.js
File metadata and controls
executable file
·34 lines (30 loc) · 897 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import React, { Component } from 'react'
import {reduxForm, Field} from 'redux-form'
class SignInForm extends Component {
static propTypes = {
};
render() {
const {handleSubmit} = this.props
return (
<div>
<h2>Sign In</h2>
<form onSubmit={handleSubmit}>
<div>
<label>Email</label>
<Field name="email" component="input" />
</div>
<div>
<label>Password</label>
<Field name="password" component="input" type="password"/>
</div>
<div>
<input type="submit" />
</div>
</form>
</div>
)
}
}
export default reduxForm({
form: 'auth'
})(SignInForm)