Created
December 15, 2018 13:41
-
-
Save himanshu-dixit/eea2b3d4b1d4043ee27e5bb5dea0f1eb 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 Dashboard extends Component { | |
.... | |
logout() { | |
let auth = new Auth(); | |
auth.logout(); | |
} | |
render() { | |
return ( | |
.... | |
<div className="button" onClick={() => this.logout()}>Logout</div> | |
.... | |
); | |
} | |
} | |
export default Dashboard; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment