Skip to content

Instantly share code, notes, and snippets.

@anythingcodes
Last active March 1, 2022 21:08
import { Dispatch, SetStateAction, useState} from 'react';
const [ count, setCount ]: [number, Dispatch<SetStateAction<number>>] = useState(0);
/**
* Want an extra challenge? Check out this playground example:
* https://bit.ly/3vv0d4x
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment