Re-render React useState without updating the state

后端 未结 0 1168
一个人的身影
一个人的身影 2020-12-23 07:18

I need to re-render this state manually.

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

I have methods inside the Person class to update it (

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