Skip to content

Instantly share code, notes, and snippets.

@simbathesailor
Last active Dec 25, 2019
Embed
What would you like to do?
blog3.md
const [count, setCount] = React.useState(0);

function fn() {
  //  access count which is available in fn scope
  setCount(count + 1)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment