score:1

// useCounter
return [count, { increment, decrement }];

// Destructuring Assignment
const [myCount, actions] = useCounter();

// Same Logic
[a, b] = [10, 20];
[ten, twenty] = [10, 20];

Related Query

More Query from same tag