React 17: Should useEffect / useCallback be called before an element is mounted?

前端 未结 0 433
半阙折子戏
半阙折子戏 2020-12-17 18:43

We have recently moved from React 16 to 17. We have a few instances where we do the following pattern:

const Component = () => {
  const ref = useRef();
           


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