Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- onLoginSuccess = () => {//making it arrow will let you avoid using bind
- this.setState(() => ({
- email: '',
- password: '',
- errorMessage: '',
- loading: false
- }));
- this.props.buttonPress;//<-what is it? do you meant to call it? this.props.buttonPress();
- }
Add Comment
Please, Sign In to add comment