Skip to content
| Marketplace
Sign in
Visual Studio Code>Visualization>React Component SpyNew to Visual Studio Code? Get it now.
React Component Spy

React Component Spy

Nerds Inc.

|
51,209 installs
| (4) | Free
Find React code from UI, or React element from code. Support React.js and React Native Web.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

React Spy: Find Code from UI, and vice versa!

Version 2.0.0 has been released with a major change: now it works with a Chrome Extension!

React-spy is a VSCode extension that connects UI elements to their source code, and vice versa. React Spy Demo

How to start

  1. Install the corresponding CHROME EXTENSION here.

  2. Turn on the chrome extension by clicking the action icon. Click Action Button

  3. Start your dev server. In other words, do npm run dev.

  4. Open your dev page, like localhost:3000. The origin should be localhost or 127.0.0.1.

  5. Click any UI of the dev page.

  6. If your project folder is open in vs-code, the corresponding fill will be opened and the code will be highlighted.

  7. Now, try moving the cursor on the code.

  8. The corresponding UI will be highlighted on the Chrome browser, as you move the cursor.

Known Limitations

  • Next.js App Router is not supported yet. (Page Router is supported)

The License

  • We're sunsetting the subscription model, along with free tier.
  • You can access all features for two weeks for free.
  • After the trial period, you should purchase a license.
  • The license is a one-time payment, no subscription.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft