Created
November 1, 2017 17:11
-
-
Save eddyw/e5b42c3fdc6c8db0c1c175de41cd2f9f to your computer and use it in GitHub Desktop.
Suck Less at React: Understanding refs
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
const SomeComponent = () => ( | |
<span>Example</span> | |
) | |
// and later somewhere in your code | |
<SomeComponent ref={handleRefs} /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment