JS Destructing in React

const [state, setState] = useState();

useEffect(() => {
  // do something
});
Puzzled Puffin