UseReducer modifying state multiple times

后端 未结 0 556
一个人的身影
一个人的身影 2021-01-24 11:17

I assume this is because of an anti-pattern side-effect. I get keyboard input from the user and use it to modify the state. I recently switched to useReducer from useState hooks

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