JS Destruktur dalam Bereaksi

const [state, setState] = useState();

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