Re-render React useState without updating the state

前端 未结 0 1192
无人共我
无人共我 2020-12-23 07:37

I need to re-render this state manually.

const [person] = React.useState(new Person());

I have methods inside the Person class to update it (

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