Could anybody help on my game of life project? http://codepen.io/c0d0er/pen/apLNPV
-
When I click the clear button, why I cannot use the new state which is created by Redux action.type===‘CLEAR’ (I cannot make the board empty and clear)?
-
I set gen=0 in handleClear under clear button in React, why it doesn’t work? If I delete clearInterval(setInter) and setInter=false, then the gen=0 will work, why?
Thank you for your time!