Issue: React DevTools not detecting the application
Error message
React DevTools extension shows 'This page doesn't appear to be using React'
Quick summary
The React DevTools browser extension cannot detect React on the page, preventing component inspection.
Why this happens
Running a production build where React is minified
React DevTools extension not installed
React version too old for the DevTools version
App rendered in an iframe or shadow DOM
Minimal example
# Production build - DevTools limited
npm run build && npm run preview# Development build - full DevTools support
npm run devDevelopment mode includes the hooks DevTools needs. Production builds strip this for performance.
How to diagnose
Check if React DevTools extension is installed and enabled
Verify you're running a development build (
npm run dev)Check the React version in package.json
How to fix
Run the app in development mode
Install/enable the React DevTools browser extension
Update React to a version compatible with DevTools
Use the standalone React DevTools:
npx react-devtools
How to prevent
Always develop in development mode
Keep React and DevTools updated
Related Resources
Related Glossary
Related Lessons
- React Overview
Learn React development setup.