Is it okay to pass non-ref objects as refs if they are contained within a ref?

前端 未结 0 1780
说谎
说谎 2021-01-16 10:39

I have a ref that contains an object that contains two refs:

function useFocusTargets() {
  const from = useRef();
  const to = useRef();
  const focusTargets         


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