How to implement key for hooks function?

前端 未结 0 1904
清酒与你
清酒与你 2021-01-07 10:50

We can pass a key prop to a React component so that whenever the key change, the component get recreated.

So can we do the same thing for hooks function?

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