JS destruking in React

const [state, setState] = useState();

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