InterviewHubPRO
Section Overview
Q148

Question 148 of 445

Part 7: Supported Libraries, Styling & Integrations (139 - 151)

33%
React & Modern Frontend (445 Qs)•Part 7: Supported Libraries, Styling & Integrations (139 - 151)

Why React tab is not showing up in DevTools?

When the page loads, React DevTools sets a global named __REACT_DEVTOOLS_GLOBAL_HOOK__, then React communicates with that hook during initialization. If the website is not using React or if React fails to communicate with DevTools then it won't show up the tab.

Practical Code Example

text
// React tab missing in DevTools:
// 1. Build is in production mode with DevTools stripped
// 2. React is inside an iframe on a different origin
// 3. Extension needs reload