Skip to content

Instantly share code, notes, and snippets.

@haldarmahesh
Created October 28, 2018 22:56
Show Gist options
  • Select an option

  • Save haldarmahesh/4f7f5559c6bbbd83fdd9d4bb438c0ac5 to your computer and use it in GitHub Desktop.

Select an option

Save haldarmahesh/4f7f5559c6bbbd83fdd9d4bb438c0ac5 to your computer and use it in GitHub Desktop.
const [count, setCount] = useState(0);
// e.g const [a, b] = [1, 2]
// The value of a is 1
// The value of b is 2
// This is array destructuring
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment