-
-
Save mwarger/f43a819afcf59d61b9cf1afc98d632b0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AuthComponent extends Component { | |
handleStateChange = state => { | |
if (state === 'signedIn') { | |
// handle state change | |
} | |
}; | |
render() { | |
return ( | |
<div> | |
<Authenticator onStateChange={this.handleStateChange} /> | |
</div> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment