Skip to content

Instantly share code, notes, and snippets.

@eddyw
Created November 1, 2017 17:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eddyw/e5b42c3fdc6c8db0c1c175de41cd2f9f to your computer and use it in GitHub Desktop.
Save eddyw/e5b42c3fdc6c8db0c1c175de41cd2f9f to your computer and use it in GitHub Desktop.
Suck Less at React: Understanding refs
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