Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
R

react-dev-inspector

> 前端框架
Open source

jump to local IDE code directly from browser React component by just a simple click

1.3K stars0 likes1 views
WebsiteGitHub

About

jump to local IDE code directly from browser React component by just a simple click

React Dev Inspector

Introduction

react-dev-inspector is the tool for seamlessly code navigation from browser to IDE.

With just a simple click, you can jump from a React component on the browser to its source code in your local IDE instantly. Think of it as a more advanced version of Chrome's Inspector.

See the document on: https://react-dev-inspector.zthxxx.me

Why React Dev Inspector

Have you ever run into any of these issues :

  • You've got to fix some bugs in your team's project, but you have no idea where the heck page/component's code is located.
  • You're eager to dive into an open-source project that interests you, but it's hard to find where the code for the page/component is implemented.
  • You may thinking about a component and want to quickly peek at its code, but don't want to memorize or manually expand those never-ending deep file paths.

That's exactly why react-dev-inspector was created.

Quick Look

Just check out this demo below and you'll get it in a snap.

Showcase: https://react-dev-inspector.zthxxx.me/showcase

screen record:

Wanna try out the demo right now? Sure, here is the online demo:

[

](https://stackblitz.com/edit/github-x3rkzl?file=package.json,vite.config.ts%3AL17)

How to Use and Configure

According to the working pipeline below, the Part.1 and Part.2 are what you need configure to use.

Basically, it's includes:

  1. [add the `` component in your page](https://react-dev-inspector.zthxxx.me/docs/inspector-component)
  2. integrate the middleware in your framework's dev-server

Check the Documentation Site for more details

How It Works

Here is the working pipeline of react-dev-inspector:

[

](https://react-dev-inspector.zthxxx.me/docs#how-it-works)

0. Inject JSX Source

The compiler's plugin records source path info into React components during development stage.

Note: The 0 of Part.0 implies that this section is generally OPTIONAL. Most React frameworks offer this feature out-of-the-box, which means you usually don't need to manually configure it additionally.

1. Inspector Component

The react-dev-inspector provide a `` component to reads the source info, and sends it to the dev-server when you inspect elements on browser.

2. Dev Server Middleware

The react-dev-inspector provide some middlewares for dev-server in most frameworks to receives source path info from API, then call your local IDE/Editor to open the source file.


Articles about it

  • [Chinese] 我点了页面上的元素,VSCode 乖乖打开了对应的组件?原理揭秘

License

MIT LICENSE

Thanks for @zthxxx @sonacy @sl1673495

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

TypeScriptdevfiberinspectorreact

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架