Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save daniepetrov/7424e8344e941cae0d1b9c6de78ebb73 to your computer and use it in GitHub Desktop.
Save daniepetrov/7424e8344e941cae0d1b9c6de78ebb73 to your computer and use it in GitHub Desktop.
toggleSubMenu = menuItem => e => {
this.setState((state, props) => {
return {
...state,
[menuItem]: true
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment