Created
March 22, 2019 01:52
-
-
Save devuxer/e4e60776bfe87eafcdc025c09904123e to your computer and use it in GitHub Desktop.
Is this a violation of https://reactjs.org/docs/hooks-rules.html?
This file contains hidden or 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
function MyComponent({ isOpen }) { | |
if (!isOpen) return null; | |
const store = useContext(StoreContext); | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment