Last active
July 3, 2019 16:15
-
-
Save treyhuffine/6a6255a32e9086dfe2376d9bf5001aeb to your computer and use it in GitHub Desktop.
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
function useState<S>(initialState: S | (() => S)): [S, Dispatch<SetStateAction<S>>]; | |
type Dispatch<A> = (value: A) => void; | |
type SetStateAction<S> = S | ((prevState: S) => S); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment