Grepedia
RA

React Anatomy

A browser DevTools extension that visualizes React component trees in 3D, allowing you to inspect live props and understand how pages are composed.

Score1
About

React Anatomy is a powerful browser developer tool extension designed for both Chrome and Firefox that provides a deep, visual, and three-dimensional perspective into how React components compose a webpage. Developed to simplify the complex task of understanding unfamiliar codebases or explaining architectural changes, the tool effectively transforms the flat, rendered output of a webpage into an explorable 3D structure. By connecting the rendered page directly to the React Fiber tree, it allows developers to visualize the component hierarchy, identify nesting, and inspect live props without needing to modify source code or add additional packages to their projects.

The tool captures the current state of a running React application, identifying each component instance, its corresponding DOM output, and its associated props. It then maps this data into a 3D interface that displays layers, allowing users to visually "explode" the page to see how different components are stacked and nested. Through this interface, users can select specific components to view their precise props, understand their position in the component tree, and observe how they relate to the broader page structure.

Some of the key features are:

  • 3D Component Exploration: Visualize the page composition by separating layers in a 3D environment for better structural understanding.
  • Live Props Inspector: Access and inspect the current props of any component in real-time, with support for deep objects and arrays.
  • Component Tree Visualization: View the actual rendered hierarchy of components from the root down to individual elements.
  • Pick on Page Tool: Directly click on any visual element on your webpage to instantly select and highlight its corresponding React component in the inspector.
  • Auto-Depth Rendering: Automatically handles complex component chains by separating visible regions into distinct layers for clarity.
  • Subtree Focus: Isolate and zoom into specific sections of the component tree to simplify inspection of nested children like badges, bars, or icons.
  • Keyboard Navigation: Efficiently move through the component tree, focus subtrees, and trigger captures using predefined keyboard shortcuts.
  • No-Package Required: Functions entirely as a browser extension without requiring any modifications to your app's dependencies or build configuration.

To use React Anatomy, developers install the extension in their browser and open the dedicated "Anatomy" panel within their standard developer tools. Upon activation, the extension captures a snapshot of the current page's component tree. The interface provides a synchronized view between the tree hierarchy, the 3D visual layer, and the props inspector. Users can toggle layers, focus on specific components to reduce visual noise, and interact with the page to trigger updates or re-captures. Because the tool reads directly from React's internal state, it provides accurate, up-to-date information about what is currently rendered on screen, making it an essential companion for debugging layout issues or understanding complex, nested architectures.

Some common use cases include:

  • Onboarding and Learning: Rapidly understand the composition of an unfamiliar project or a third-party codebase by visualizing how components are assembled.
  • Pull Request Reviews: Take screenshots of specific component subtrees and their props to provide clear visual evidence of structural changes to reviewers.
  • Debugging Layout Issues: Identify which specific component is responsible for unexpected spacing, misplaced elements, or incorrect visual hierarchy by inspecting the 3D layers.
  • Validating AI-Generated Code: Verify the structure and implementation details of components generated by AI agents to ensure they meet project standards before merging.
  • Prop Verification: Quickly check the data being passed to components in real-time to resolve issues related to missing or incorrect props without logging to the console.