-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathAddPeopleForm.js
More file actions
30 lines (28 loc) · 859 Bytes
/
AddPeopleForm.js
File metadata and controls
30 lines (28 loc) · 859 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
import React, { Component } from 'react';
import {reduxForm, Field} from 'redux-form'
class AddPeopleForm extends Component {
render() {
return (
<div>
<h3>Add people</h3>
<form>
<div>
FirstName: <Field name='firstname' component='input'/>
</div>
<div>
LastName: <Field name='lastname' component='input'/>
</div>
<div>
Email: <Field name='email' component='input'/>
</div>
<div>
<input type='submit' />
</div>
</form>
</div>
);
}
}
export default reduxForm({
form: 'addPeopleForm'
})(AddPeopleForm);