Why does React re-render differently whether the state is an object vs a string?

后端 未结 0 417
庸人自扰
庸人自扰 2021-02-05 12:47

The below React example, userProfile state is an object:
1st render: state is {}
2nd render: state is res.data

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