Re-render React useState without updating the state

前端 未结 0 1051
太阳男子
太阳男子 2020-12-23 07:39

I need to re-render this state manually.

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

I have methods inside the Person class to update it (

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