Conway’s game of life React Hooks

I’m having issues with updating the rendered board.

in line 14 the handleClick function updates the state but it does not get updated in the DOM.

My code
Thank you.

Hi, clicking “start” produces the following uncaught error in the console:

ReferenceError: useInterval is not defined

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.