Created
April 27, 2020 12:07
-
-
Save marshallmurphy/156364f9c73e5337b9e0aad35e7fe8bb 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
const [active, setActive] = useState(false); | |
function closeMenu(e) { | |
(e.keyCode === 9 && !e.shiftKey) && setActive(false); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment