Created
July 10, 2018 08:56
-
-
Save daniepetrov/7424e8344e941cae0d1b9c6de78ebb73 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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