Fix context binding of 'this'

This commit is contained in:
Daniel Destouche
2017-09-20 19:23:15 -04:00
committed by Tom MacWright
parent e351f4227a
commit ab3b61d580

View File

@ -92,6 +92,8 @@ export default class App extends React.PureComponent {
showNav: false showNav: false
}; };
} }
this.navigationItemClicked = this.navigationItemClicked.bind(this);
} }
toggleNav() { toggleNav() {
this.setState({ showNav: !this.state.showNav }); this.setState({ showNav: !this.state.showNav });