How do I use React refs in a map for functional components?

后端 未结 0 435
抹茶落季
抹茶落季 2020-12-10 11:12

I have a map function which renders a list of divs and these divs are based on the components state, so it is dynamic. I need to put a ref on each of these items on the lis

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