Skip to content

Instantly share code, notes, and snippets.

@jrwebdev
Created February 13, 2019 06:02
Show Gist options
  • Save jrwebdev/dd026ca482b6787d21fd7043edc6e785 to your computer and use it in GitHub Desktop.
Save jrwebdev/dd026ca482b6787d21fd7043edc6e785 to your computer and use it in GitHub Desktop.
const myNumberRef = useRef(0);
myNumberRef.current += 1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment