Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- async onSubmit() {
- const {login} = this.props;
- // Set loading state here
- try {
- const response = await login({username: "test", password: "topsecret"});
- } catch (err) {
- // Handle errors here
- }
- }
Add Comment
Please, Sign In to add comment