-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Expand file tree
/
Copy pathEmail.js
More file actions
38 lines (34 loc) · 1015 Bytes
/
Email.js
File metadata and controls
38 lines (34 loc) · 1015 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
35
36
37
38
import React, { Component } from 'react';
class Email extends Component {
constructor(props) {
super(props);
this.state = {
to: "",
title: "",
body: ""
};
}
render() {
return (
<div className="row">
<div>Send an email: </div>
<form onSubmit={this.submitEmail.bind(this)}>
<div className="row">
<input id="to" ref="to" type="text"></input>
<label htmlFor="to">To: </label>
</div>
<div className="row">
<input id="title" ref="title" type="text"></input>
<label htmlFor="to">Title: </label>
</div>
<div className="row">
<input id="body" ref="body" type="text"></input>
<label htmlFor="to">Body: </label>
</div>
<button type="submit" name="action">Send</button>
</form>
</div>
);
}
}
export default Email;