What is the react way to store a mutable class instance object in state

前端 未结 0 519
慢半拍i
慢半拍i 2021-02-05 18:56

React state shouldn\'t be mutated directly. But, what if the state is an instance of a class that shall be mutable with its own methods. Is there another way than having to deep

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