Anyone have any clue why my react component dev tools looks like this? Prior to the most recent react dev tools major update, I could see the names of all my components, but now it just looks like this. Dev Tools View The component names are all minified!
Asked
Active
Viewed 1,555 times
2 Answers
4
You're using production/ minified version of the code. When such code is viewed in Devtool, you can only see single letter representation.
Make sure to run app in development mode and see if Devtool is picking up the right component name.

Bikas
- 2,709
- 14
- 32
-
How do you run an app in development mode? – Ralph David Abernathy Apr 10 '23 at 21:14
0
Anyone have any clue why my react component dev tools looks like this?
As @bikas mentioned, your code is minified.
Solution
What you need is a non-minified, i.e., development build of your project.
- Install the dotenv-cli package in your dev dependencies:
npm i dotenv-cli --save-dev
- In your
package.json
, add a new script:
"build:dev": "dotenv -e .env.development react-scripts build"
- Now create a development build:
npm run build:dev
- Deploy locally, probably with
npm start
- You can now use your previously installed React Dev Tools extension to view your components:
- Your components should now have readable names per your project. Happy coding :-)

Super Jade
- 5,609
- 7
- 39
- 61