Conway’s game of life React Hooks

Hello
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
at https://cdpn.io/cp/internal/boomboom/pen.js?key=pen.js-d275619d-ee82-a44d-2b74-b1d1a6769038:159

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