Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React Dev Tools not showing name of the components

I joined a team. There are thousands of components and codes. It takes so much time to find the exact place of the component. That's why when I open the React Dev Tools I see this picture below.I did so much research about it and I understand that React.memo, forwardRef cause this problem. But I could not find the solution that I want to find. enter image description here

like image 677
Ufuk UYSAL Avatar asked Oct 19 '25 13:10

Ufuk UYSAL


1 Answers

For anyone who faces this issue, I fixed it by changing all the nameless export default components.

Example: I changed this

 export default () => { //your component }

into this :

const Xyz = () => { //your component }

export default Xyz
like image 191
Amr Avatar answered Oct 22 '25 09:10

Amr



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!