Skip to content

Commit

Permalink
Use userName
Browse files Browse the repository at this point in the history
  • Loading branch information
John Tucker committed Jun 4, 2018
1 parent 2a94ed1 commit 7b435d0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/Page/PageView/Form/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@ export default class Form extends Component<{}, FormState> {
return (
<div>
<h2>Form</h2>
{userName}
<div>User Name:: {userName}</div>
<FormSample doSomething={this.handleDoSomething} />
</div>
);
}
private handleDoSomething = (userName: string) => {
window.console.log(userName);
this.setState({
userName,
});
};
}

0 comments on commit 7b435d0

Please sign in to comment.