Can someone explain me what is going on here?
const [counter, setCounter] = useState(0);
Is it some kind of assignment?
Can someone explain me what is going on here?
const [counter, setCounter] = useState(0);
Is it some kind of assignment?
It's a destructuring assignment on the results of calling the useState
function: