Skip to content

Instantly share code, notes, and snippets.

@DJanoskova
Last active August 8, 2021 10:33
Show Gist options
  • Select an option

  • Save DJanoskova/d4ec39908a871d7aadf5c04e597e126b to your computer and use it in GitHub Desktop.

Select an option

Save DJanoskova/d4ec39908a871d7aadf5c04e597e126b to your computer and use it in GitHub Desktop.
const [counter, setCounter] = useState(0)
const handleIncrement = () => {
setCounter(prev => prev + 1)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment