Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React Dev Tools does not show Component Names or State Variable Names

This is a screenshot of the new React Dev Tools in Google Chrome:

React Dev Tools

Only the top level component name AdminArea shows. This component is in my script's entry file, index.jsx. There should also be AddNewCoupon and ViewCoupons components. No filters are enabled.

Notice also the state hook naming inside the component only says "State". These are booth useState() hooks.

The useReducer's initial state variable names can be seen, but only because I'm directly exporting and importing that variable into the entry file index.jsx.

Anyone know how to fix these labelling issues?

like image 886
Sean D Avatar asked Mar 16 '26 06:03

Sean D


1 Answers

Actually there's no current solution to this problem I was going to open a Github issue about this but it turned out that Bryan Vaughn opened the issue himself :). Here is the reference to Github issue. Cheers, sigfried.

Update

Now it's possible to show the names within the DevTools, click the magic wand in the top right corner: Click the magic wand button

And that will become: enter image description here

like image 171
sigfried Avatar answered Mar 18 '26 22:03

sigfried