is there a way to create REFs dynamically then access them

前端 未结 0 343
耶瑟儿~
耶瑟儿~ 2021-01-24 07:09

Here is a simple component where I\'m adding buttons dynamically:

const MyCompanent = ({ listOfButtons }) => {
    const handleOnKeyUp = (event) => {
               


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