as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support

Use React DevTools to Inspect Component Rendering

React DevTools helps you debug and profile React component rendering in your Vega apps. It provides:

  • A component inspector to examine hierarchy, props, and styles.
  • A built-in profiler to analyze component re-rendering and its causes.

This page explains how to install, configure, and use React DevTools with your Vega apps.

Prerequisites

  1. Three terminal windows with the Vega SDK environment script sourced.
  2. A Vega app project configured for debug builds.

For set up instructions, see Install Vega SDK and Build a Vega App.

Set Up React DevTools

  1. Install React DevTools globally.

    Copied to clipboard.

     npm install -g react-devtools@6.0.1
    
  2. Forward the required ports to activate connectivity.

    React DevTools connects through port 8097, while the React Native packager uses port 8081.

    Copied to clipboard.

    kepler device start-port-forwarding -p 8097 -f false -d <<Device_Serial_Number>>
    kepler device start-port-forwarding -p 8081 -f false -d <<Device_Serial_Number>>
    

    For Vega Virtual Device testing, use VirtualDevice as «Device_Serial_Number».

  3. Launch the React DevTools.

    Copied to clipboard.

     npx react-devtools
    
  4. Start the React Native packager in your project directory.

    Copied to clipboard.

     npm start
    
  5. Run the debug version of your app.

    Copied to clipboard.

    kepler run-kepler <<PATH_DEBUG_VPKG>> <<INTERACTIVE_COMPONENT_ID>>
    

    React DevTools connects when your app loads. Press r in the packager terminal to reload if needed.

Inspect and debug your app

React DevTools provides two main interfaces to help you inspect and debug your app.

Examine components

Use the Components view to examine your component hierarchy, props, and styles.

React DevTools Components Panel

Monitor performance

The Profiler view displays rendering metrics and component performance.

React DevTools Chart

The chart shows the React commit cycles. Select a bar to inspect the components rendered in a specific cycle.

React DevTools Flamegraph View

Use the Flamegraph view to inspect rendering time and hierarchy.

React DevTools Ranked View

Use the Ranked view to see components ordered by render time.


Last updated: Sep 30, 2025