MSK Institute LogoMSK.Institute
HomeCourses
Book Free Demo➔Sign In
Free Demo➔
MSK Institute LogoMSK.Institute

Leading computer training academy in Shikohabad for software engineering, Python, web development, and digital literacy.

ISO 9001:2015 Certified Center
Follow & Connect
4.9

Programs & Admissions

  • All CoursesCatalog
  • Learning PathsRoadmaps
  • Student ProjectsShowcase
  • Live Classes & ScheduleLive
  • Upcoming Batches
  • Campuses & LocationsHub
  • Verify Certificates
  • Book Free Demo Class

Resources & Tools

  • Free Online Mock TestsAll Tests
  • NIELIT CCC Mock TestFree
  • Course & Career FinderQuiz
  • Study Material Hub
  • All MSK ToolsHub
  • Keyboard ShortcutsNew
  • TypeQuest Speed LabTyping
  • MSK Code PlaygroundCode
  • Interactive Tutorials
  • Quick Cheatsheets

Institute & Contact

  • About MSK Institute
  • Careers & InternshipsHiring
  • Publications & Blogs
  • Gali No. 3, Near Gyan Jyoti Public School,
    Adarsh Nagar, Shikohabad, Uttar Pradesh 283135
  • +91 83930 42166
  • mskshikohabad@gmail.com
  • Hours:Mon – Sat: 8:00 AM – 7:00 PM | Sun: 10:00 AM – 2:00 PM
  • 4.9 ★(38 Google Reviews)
© 2026 MSK Institute. All rights reserved.•Privacy Policy•Terms of Service•Disclaimer•Contact Us

Shikohabad's Leading Computer & Coding Academy

Home
Courses
Live
Material
Using React Developer Tools Extension0%
Study Materials
React.js for BeginnersProgress 0%
1.1Why React and Single-Page Architecture1.2Setting Up Modern React with Vite1.3React Project Directory Structure and Entry Points1.4Virtual DOM and React Render Cycle Explained
11.1Understanding Common React Errors and Warnings11.2Using React Developer Tools Extension11.3Debugging State Updates and Props in DevTools11.4Strict Mode and Detecting Unintentional Side Effects
HomeTutorialsReact.js for BeginnersUsing React Developer Tools Extension
Debugging State Updates and Props in DevTools

Using React Developer Tools Extension

Beginner12 min read•Updated: 2026-11-18•By Er. Sumit Kumar (MSK Institute)
Study MaterialsCheatsheet

1. What is React Developer Tools?

React Developer Tools is an official browser extension created by the React core team (available for Chrome, Firefox, and Edge).

While standard browser DevTools (Elements, Console, Network) inspect the physical HTML DOM, React DevTools allows you to inspect the actual React Component Hierarchy, including props, state, hooks, context, and render performance.

1Standard Browser DevTools:
2Shows: <div class="card"><button class="btn">...</button></div> (Flat HTML DOM)
3 
4React Developer Tools:
5Shows: <CourseDirectory> ──> <CourseCard title="React"> ──> <Button> (Component Tree)

2. The Two Core Tabs

Once installed, React DevTools adds two new panels to your browser developer tools:

Tab 1: Components

  • Component Tree: Browse the hierarchical tree of React components exactly as structured in your source code.
  • Inspect Props & State: Click any component in the tree to view and modify its current props, state, and hooks in real time.
  • Source Link: Click the <> icon to jump directly to the component's source code file in your IDE or browser sources.
  • Search & Filter: Search for components by name or filter out host DOM nodes.

Tab 2: Profiler

  • Record rendering performance and flame graphs.
  • Discover which components re-rendered, why they re-rendered ("What caused this to render?"), and how many milliseconds each render took.

3. Highlighting Re-Renders

One of the most powerful diagnostic features in React DevTools is "Highlight updates when components render":

  1. 1
    Open React DevTools -> Click the Settings Gear icon.
  2. 2
    Under the General tab, check "Highlight updates when components render."
  3. 3
    Interact with your application.

Whenever a component re-renders, a colored rectangle flashes around it in the viewport:

  • Green: Fast / normal re-render.
  • Yellow / Red: Frequent or computationally heavy re-render.

This immediately exposes unintended re-render cascades across your interface.

4. Selecting Components via Console ($r)

When you select any component in the Components tab:

  • React DevTools automatically assigns that component instance to a global console variable named $r.
  • Switch to the Console tab and type $r to inspect its props, state, and methods directly in JavaScript!
1// In Browser Console:
2$r.props // Inspect current props of selected component
3$r.state // Inspect current state of selected component

Interactive Quiz• Knowledge Check

Practice Quiz

Question 1
What is the primary purpose of the React Developer Tools extension?
Question 2
What are the two primary panels added by React DevTools to browser developer tools?
Question 3
What happens when you enable "Highlight updates when components render" in React DevTools settings?
Question 4
When a component is selected in the React DevTools Components tab, what special variable is made available in the JavaScript console?
Question 5
Can you edit component state directly in React DevTools to test different UI scenarios?
Next Lesson

Debugging State Updates and Props in DevTools

Continue learning with hands-on practice, examples, and exercises in the upcoming topic.

Related Lessons

Previous LessonNext Lesson
Understanding Common React Errors and WarningsDebugging State Updates and Props in DevTools

Practice Quiz

Test your understanding of this lesson with 5 questions. Each question has one correct answer.

Mentor-Led Practical Training

Master React.js for Beginners with Hands-On Projects

Practice in live mentor-led sessions with real projects, mock tests, and verifiable certification at MSK Institute.

View Full CourseBook Free Demo
PreviousNext
PreviousPrevNext