← 返回功能
Pro

组件检测器

检测网站是否使用 React、Vue、Angular、Svelte、Next.js 或其他框架。

您是否曾好奇过一个网站是用什么框架构建的?或者想了解一个复杂的 UI 是如何被拆解成各个组件的?Component Detector 能立即回答这两个问题。它会扫描页面,寻找特定框架的特征标识(React fiber 节点、Vue 组件实例、Angular zone 标记、Svelte 组件元数据),从而识别出所使用的框架、版本以及完整的组件树。对于 React 和 Vue,它还能更进一步——显示组件的 props 和 state 数值,帮助您理解是什么数据驱动了 UI 的每一部分。

点击组件树中的任意组件,即可高亮页面上对应的 DOM 元素;或者点击页面上的元素,即可在组件树中定位到它。这就像是 React DevTools 或 Vue DevTools,但以轻量级浮动面板的形式内置于您的页面中,无需为每个查看的项目单独安装特定框架的扩展。

即使在经过压缩、生产环境打包的网站上,组件名称和变量名已被混淆,检测依然有效——该工具依靠的是结构特征,而非依赖可读的源代码,这也是它在从未提供 source map 的网站上依然能正常工作的原因。除了四大主流框架之外,它还能识别叠加在其上的元框架,例如 Next.js 和 Nuxt,并将它们作为独立于底层 React 或 Vue 运行时的一层单独报告。因此,每当您接触到一个陌生的代码库或竞争对手的网站,需要在深入研究之前先了解概况时,它都是快速入门的第一步。

实时预览
example.com/app
检测到页面组件
<App>
<Navbar>
<Dashboard>
<StatsCard>
<StatsCard>
组件检测器
R
React
检测到 v18.2.0
▼ App
▼ Navbar
Logo
NavLinks
▼ Dashboard ● 已选择
StatsCard ×2
ChartWidget
RecentActivity
属性
title"Overview"
loadingfalse
columns2
核心功能

Automatic Framework Detection

Detects React (including Next.js, Gatsby, Remix), Vue (including Nuxt), Angular, Svelte (including SvelteKit), Preact, Solid, and other frameworks automatically. Shows the framework name, exact version number, and rendering mode (client-side, SSR, or hybrid).

Full Component Tree

Renders the complete component hierarchy in a collapsible tree view. See how the top-level App component contains a Navbar, which contains NavLinks, which contain individual Link components. The nesting depth and parent-child relationships are crystal clear.

Props & State Inspection

For React and Vue components, view the current props and state values passed to each component. See that the Dashboard component receives title="Overview", loading=false, and columns=2. Invaluable for understanding data flow.

Two-Way Element Linking

Click any component in the tree panel to highlight its corresponding DOM element on the page with a colored overlay. Or click any element on the page to find and select its parent component in the tree. Navigate in whichever direction is natural.

Component Count & Statistics

See the total number of components rendered on the page, how many are unique vs repeated instances, and which components appear most frequently. Useful for understanding page complexity and identifying reuse patterns.

Works on Production Sites

Detects frameworks even on minified production builds. React's fiber tree, Vue's __vue__ markers, and Angular's ng attributes persist in production mode — Component Detector reads them regardless of build configuration.

使用场景

Identifying a Website's Tech Stack

Visit any website and instantly know whether it's built with React, Vue, Angular, or Svelte — including the exact version. Combine with Site Stack for a complete technology audit including CDN, analytics, and CMS information.

Understanding Component Architecture

Studying how production applications decompose their UI into components. See how Stripe structures its pricing page, how Linear organizes its dashboard, or how any well-built app separates layout, navigation, and content into components.

Debugging Data Flow Issues

A component isn't rendering correctly? Inspect its props and state to see what data it's actually receiving. Compare expected values against actual values to identify where the data flow breaks — without console.log statements.

Interviewing & Learning

Preparing for a frontend interview? Browse production sites to see real-world component patterns — container/presentational splits, render prop usage, context providers, and HOC wrappers are all visible in the component tree.

Comparing Framework Approaches

Visit similar products built with different frameworks and compare their component structures. See how a React app vs a Vue app approaches the same UI pattern — navigation, forms, data tables, modals — and understand the architectural differences.

使用方法
1

Activate Component Detector

Open the DevSuite Pro floating dock and click the Component Detector icon. The tool scans the page DOM for framework-specific markers and builds the component tree.

2

View Framework Information

The panel header shows the detected framework (React, Vue, Angular, Svelte), its version, and the rendering mode. If no framework is detected, it reports the page as vanilla HTML/CSS/JS.

3

Browse the Component Tree

Expand and collapse components in the tree to explore the hierarchy. Component names appear with their nesting depth indicated by indentation. Repeated components show an instance count.

4

Inspect Props & State

Click any component in the tree to see its current props and state values in the details section below. For React: props, state, and hooks. For Vue: props, data, and computed properties.

5

轤ケ蜃サ蝨ィ鬘オ髱「荳企ォ倅コョ

Click any component to highlight its corresponding DOM element on the page with a colored border and semi-transparent overlay. Click an element on the page to locate it in the tree.

准备好开始了吗?

免费安装 DevSuite Pro,为您的浏览器解锁 64+ 个开发者工具。

添加到 Chrome 添加到 Edge 添加到 Firefox