Re-render React useState without updating the state

后端 未结 0 1887
旧时难觅i
旧时难觅i 2020-12-23 07:17

I need to re-render this state manually.

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

I have methods inside the Person class to update it (

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