Guest User

Untitled

a guest
Feb 23rd, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. onLoginSuccess = () => {//making it arrow will let you avoid using bind
  2. this.setState(() => ({
  3. email: '',
  4. password: '',
  5. errorMessage: '',
  6. loading: false
  7. }));
  8. this.props.buttonPress;//<-what is it? do you meant to call it? this.props.buttonPress();
  9. }
Add Comment
Please, Sign In to add comment