const [count, setCount] = React.useState(0);
function fn() {
// access count which is available in fn scope
setCount(count + 1)
}
Last active
December 25, 2019 10:27
-
-
Save simbathesailor/e5cb03e08748dd984c0c085722d9927a to your computer and use it in GitHub Desktop.
blog3.md
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment