useRef for element in loop in react

前端 未结 0 814
礼貌的吻别
礼貌的吻别 2020-12-18 07:13

Using React, i have a list of ref statically declared this way:

  let line1 = useRef(null);
  let line2 = useRef(null);
  let line3 = useRef(null);
  ...
  //         


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