Reputation: 51
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!
Upvotes: 5
Views: 2099
Reputation: 6364
Anyone have any clue why my react component dev tools looks like this?
As @bikas mentioned, your code is minified.
What you need is a non-minified, i.e., development build of your project.
npm i dotenv-cli --save-dev
package.json
, add a new script:"build:dev": "dotenv -e .env.development react-scripts build"
npm run build:dev
npm start
Upvotes: 0
Reputation: 2759
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.
Upvotes: 4