Difference between using forwardRef or just passing ref as a prop in React and its effect on useImperitaveHandle

后端 未结 0 1979
攒了一身酷
攒了一身酷 2020-12-08 03:44

The React docs provides the following example for forwardRef

const FancyButton = React.forwardRef((props, ref) => (
  
相关标签:
回答
  • 消灭零回复
提交回复
热议问题