Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2017
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. handleLogIn(username, password){
  2. {/*call to the backend and bcrypt goes here*/}
  3.  
  4.  
  5. console.log('inside App. username: ', username, ' password: ', password);
  6.  
  7. this.setState({
  8. username:username,
  9. password:password
  10. }).then(function() {
  11. console.log("poop");
  12. }.bind(this));
  13.  
  14. }
  15.  
  16.  
  17.  
  18. render() {
  19.  
  20. const xProfilePagex = () => {
  21. return(
  22. <div>
  23. <ProfilePage handleLogIn={this.handleLogIn.bind(this)}/>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement