From 4731ce389014e46c3e0e3d55b526ecd83e7c7e8a Mon Sep 17 00:00:00 2001 From: Daniel Destouche Date: Wed, 20 Sep 2017 19:37:29 -0400 Subject: [PATCH] Update to property initializer syntax --- src/components/app.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/app.js b/src/components/app.js index 9cbaf2a..22fc8bf 100644 --- a/src/components/app.js +++ b/src/components/app.js @@ -92,8 +92,6 @@ export default class App extends React.PureComponent { showNav: false }; } - - this.navigationItemClicked = this.navigationItemClicked.bind(this); } toggleNav() { this.setState({ showNav: !this.state.showNav }); @@ -147,7 +145,7 @@ export default class App extends React.PureComponent { window.location.hash = window.location.hash; } } - navigationItemClicked(activeSection) { + navigationItemClicked = activeSection => { setTimeout(() => { this.setState({ activeSection }); }, 10);