Created
March 17, 2020 05:15
-
-
Save AndrewRayCode/d9781dfe9566195ccbd2e91dc5f5fb89 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 Dangus = () => { | |
const group = useRef(); | |
useThingy(() => { | |
const { current } = group; | |
if (current) { | |
current.prop = 'hi'; // Object is possibly 'undefined'. | |
} | |
}); | |
return <thing ref={group}></thing>; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment