60

I have installed React Developer Tools Chrome browser extension. But i cannot see the React tab in developer tools instead there are new tabs named "Components" & "Profiler".

I re-installed the extension, restarted the browser and computer, checked "Allow access to file URLs" under chrome://extensions/ . I navigated to a url with react https://reactjs.org/tutorial/tutorial.html & yet react tab doesn't appear. However the chrome plugin (react detector in top right of the browser) indicates that react.js in it. How do I get the React tab to appear ?

I am using "react": "16.8.6"

Abhinav Kinagi
  • 3,653
  • 2
  • 27
  • 43
thilakshiK
  • 735
  • 2
  • 6
  • 11
  • 2
    As [Dan](https://stackoverflow.com/users/1269037/dan-dascalescu) suggested I had to restart Chrome after installing the extension for its tabs to show up. – Phani Rithvij Jul 04 '20 at 16:47
  • I had to close and restart Chrome to see the added tabs – A.W. Sep 08 '20 at 18:03

9 Answers9

74

You can't see React tab because, Facebook have updated React DevTools to have Components and Profiler Tabs. ⚛️ Components tab serves same purpose as React tab in older versions. From description,

You will get two new tabs in your Chrome DevTools: "⚛️ Components" and "⚛️ Profiler".

The Components tab shows you the root React components that were rendered on the page, as well as the subcomponents that they ended up rendering.

This can be seen from version 4.0.0. See the release notes here

Abhinav Kinagi
  • 3,653
  • 2
  • 27
  • 43
52

After installing the extension, it didn't show up, refreshing the page did not work. But closing the tab and reopening it again made it work for me

Sahin
  • 1,032
  • 14
  • 23
6

After installing the extension, you will have a little 'atom-like- react icon next to your extensions (usually top right part of the screen) and if a website wasn't built with ReactJS, this extension sign will be grayed-out and there would be no menu in DevTools. However, I would recommend trying updating GoogleChrome and reinstalling the extension. Sometimes the restart of the computer will help.

kovalyovi
  • 1,006
  • 1
  • 9
  • 19
  • 5
    I am using latest chrome version. Even the react icon (in top right of the screen) shows the blue & black color, yet i cannot see the react tab in devtools. I also checked the facebook home page but no luck with it – thilakshiK Aug 17 '19 at 05:27
3

As mentioned in the above answers React Dev Tools have been replaced by Components and Profiler tab as shown in below image. Clicking on the component name in the Components tab shows the more detailed information about that component like props and state on the right.

enter image description here

Hetal Rachh
  • 1,393
  • 1
  • 17
  • 23
3

If you are facing the problem, then obviously you are using React DOM. I got the solution from troubleshooting instructions.

You just have to add

<script src="http://localhost:3000"></script>

to <head> tag of index.html.

Please note that you have to enter your specific port number after localhost.

Hit refresh in chrome and you will see the react-devtools extension color change into red indicating that it is ready to work . Then open inspect in chrome and you will see the two components and profiler options.

Josef
  • 2,869
  • 2
  • 22
  • 23
2

After installing the extension, I went to Chrome extensions and enabled the React Developer Tools extension, then it started showing.

enter image description here

tmndungu
  • 320
  • 4
  • 17
0

What did finally work was updating React and ReactDom from version 16.8 to v17.

Slav
  • 353
  • 4
  • 10
-1

I am using the latest Chrome browser too and the latest React developer tools. You will only see the components when you are browsing a website or page built with React technology. So for instance, when I am on the Google homepage, I will not see React components button on my dev tools but when I am on the Facebook or React homepage or any other page build with react, I will see the Component and the Profiler buttons in dev tools. The extension button you have on your browser extension bar is just to tell you whether or not the website you are on uses react.

Nimantha
  • 6,405
  • 6
  • 28
  • 69
AnatuGreen
  • 579
  • 7
  • 14
-3

On your terminal run:

npm install -g serve

And then run:

serve -s build

You will find a new localhost address like this where the react development tools works:

  Serving!                                         │
   │                                                    │
   │   - Local:            http://localhost:5000        │
   │   - On Your Network:  http://192.168.10.131:5000   │
   │                                                    │
   │   Copied local address to clipboard!  
Nimantha
  • 6,405
  • 6
  • 28
  • 69