const toogleState = (index) =>{ console.log(index); } code example
Example: const toogleState = (index) =>{ console.log(index); }
setCount(count + 1);
setNumbers(numbers.concat(numbers[0] + count));
setCount(count + 1);
setNumbers(numbers.concat(numbers[0] + count));