Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React tab doesn't appear in chrome developer tools

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"

like image 377
thilakshiK Avatar asked Aug 17 '19 05:08

thilakshiK


People also ask

How do I get React tab in Developer Tools?

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. Show activity on this post.

How do I see React in Chrome?

You will get a new tab titled “React” in your Chrome DevTools. This tab shows you a list of the root React Components that are rendered on the page as well as the subcomponents that each root renders. Selecting a Component in this tab allows you to view and edit its props and state in the panel on the right.


1 Answers

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

like image 118
Abhinav Kinagi Avatar answered Oct 14 '22 07:10

Abhinav Kinagi