React Redux Game of Life questions

React Redux Game of Life questions
0

#1

Could anybody help on my game of life project? http://codepen.io/c0d0er/pen/apLNPV

  1. 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)?

  2. 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!