Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {/*the below returns the error Uncaught "TypeError: Cannot read property 'then' of undefined"*/}
- {/*it has something to do with the then in the set.state promise, but I've tried a few ways to make a promise*/}
- {/*set.state and havent made headway.*/}
- handleLogIn(username, password){
- {/*call to the backend and bcrypt goes here*/}
- console.log('inside App. username: ', username, ' password: ', password);
- this.setState({
- username:username,
- password:password
- }).then(function() {
- console.log("poop");
- }.bind(this));
- }
- render() {
- const xProfilePagex = () => {
- return(
- <div>
- <ProfilePage handleLogIn={this.handleLogIn.bind(this)}/>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement