Add this function binds to Navbar constructor

This commit is contained in:
Mitchell Simon 2019-09-02 22:37:46 -04:00
parent b8068f4b58
commit 9b0c712688
2 changed files with 5 additions and 0 deletions

View File

@ -21,6 +21,7 @@ export default class Experience extends React.PureComponent<Props> {
</div> </div>
) )
} }
private renderBullets() { private renderBullets() {
return this.props.bullets.map((bullet, index) => ( return this.props.bullets.map((bullet, index) => (
<li key={index}>{bullet}</li> <li key={index}>{bullet}</li>

View File

@ -14,6 +14,10 @@ class Navbar extends React.Component<{}, State> {
constructor(props: {}) { constructor(props: {}) {
super(props) super(props)
this.state = { showMenu: !this.isMobile() } this.state = { showMenu: !this.isMobile() }
this.toggleMenu = this.toggleMenu.bind(this)
this.renderButtons = this.renderButtons.bind(this)
this.closeMenu = this.closeMenu.bind(this)
} }
public render() { public render() {