Skip to content

Instantly share code, notes, and snippets.

@treyhuffine
Created March 5, 2019 01:16
Show Gist options
  • Save treyhuffine/e612257bfa62a443003451111f875127 to your computer and use it in GitHub Desktop.
Save treyhuffine/e612257bfa62a443003451111f875127 to your computer and use it in GitHub Desktop.
function useRef<T>(initialValue: T): MutableRefObject<T>;
interface MutableRefObject<T> {
current: T;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment