Skip to content

Instantly share code, notes, and snippets.

@simbathesailor
Last active December 25, 2019 10:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simbathesailor/e5cb03e08748dd984c0c085722d9927a to your computer and use it in GitHub Desktop.
Save simbathesailor/e5cb03e08748dd984c0c085722d9927a to your computer and use it in GitHub Desktop.
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