Update to property initializer syntax
This commit is contained in:
committed by
Tom MacWright
parent
ab3b61d580
commit
4731ce3890
@ -92,8 +92,6 @@ 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 });
|
||||||
@ -147,7 +145,7 @@ export default class App extends React.PureComponent {
|
|||||||
window.location.hash = window.location.hash;
|
window.location.hash = window.location.hash;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
navigationItemClicked(activeSection) {
|
navigationItemClicked = activeSection => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.setState({ activeSection });
|
this.setState({ activeSection });
|
||||||
}, 10);
|
}, 10);
|
||||||
|
Reference in New Issue
Block a user