0

Apparently, all documentation of React developer tools has moved to the main React page, where I cannot find any documentation about React developer tools.

I wonder why my functional component appears with a "ForwardRef" icon attached:

enter image description here

A hint to any documentation is also appreciated. All I find is this blog entry https://reactjs.org/blog/2019/08/15/new-react-devtools.html

citykid
  • 9,916
  • 10
  • 55
  • 91

1 Answers1

1

A forwardRef is used to pass an object or a function reference down to its children. For more information, see the React docs

Jeroen
  • 311
  • 2
  • 14
  • I do not use ForwardRef, I have a plain function component with hooks. Why does React DevTools show ForwardRef? – citykid Aug 12 '22 at 13:22
  • 1
    In that case might your question be a duplicate of [this question](https://stackoverflow.com/questions/66116058/what-does-forwardref-by-a-component-in-react-dev-tools-mean-and-how-can-i-use-it) – Jeroen Aug 12 '22 at 13:25