Javascript – React state is not updating 2d array
I'm building a React application that asks the user for an input, and if correct (enter "3"), we render a 10x10 grid of buttons, each tied to a click handler. Code sandbox url When any button is clicked, it should…