Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions 14-form-submission/a-login-form/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,13 @@ class App extends Component {
});
}
render () {
const { state } = this;
const { password, username } = this.state;

return (
<form onSubmit={this.handleSubmit}>
<input
type="text"
value={state.username.value}
value={username.value}
name="username"
placeholder="username..."
onChange={this.handleChange}
Expand All @@ -38,7 +39,7 @@ class App extends Component {
<br />
<input
type="password"
value={state.password.value}
value={password.value}
name="password"
placeholder="password..."
onChange={this.handleChange}
Expand Down