Skip to content

Instantly share code, notes, and snippets.

@mwarger
Created March 25, 2018 18:20
Show Gist options
  • Save mwarger/f43a819afcf59d61b9cf1afc98d632b0 to your computer and use it in GitHub Desktop.
Save mwarger/f43a819afcf59d61b9cf1afc98d632b0 to your computer and use it in GitHub Desktop.
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