Is it necessary to use the spread operator in useReducer?

后端 未结 0 885
终归单人心
终归单人心 2020-11-21 06:12

Compare the following 2 code snippets, they do the same thing by both updating 2 states at once with an initialState, except one uses useState and

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