Should I always deep clone React's state?

后端 未结 0 1175
萌比男神i
萌比男神i 2021-01-03 04:46

I am developing a Tic Tac Toe game with React.

The click handler for the game cells look like this:

function onClick(row, cell) {
    if(!state.game[ro         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题