-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.component.jsx
More file actions
43 lines (35 loc) · 1.02 KB
/
test.component.jsx
File metadata and controls
43 lines (35 loc) · 1.02 KB
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
39
40
41
42
43
import React from 'react';
import 'test.styles.scss';
class SignIn extends React.Component {
constructor(props) {
super(props);
this.state = {
email: '',
password: ''
};
}
handleSubmit = () => {
}
handleChange = e => {
const { value, name} = e.target;
this.setState({name: value});
}
render() {
return (
<div>
<form onClick={this.handleSubmit}>
<input name="email" type="email" value={this.state.email} onChange={this.handleChange} required/>
<label>Email</label>
<input name="password"
type="password"
value={this.state.password}
onChange={this.handleSubmit}
required/>
<label>Password</label>
<input type="submit" value="Submit form"/>
</form>
</div>
);
}
}
export default SignIn;