← Atgal į funkcijas
Pro

Komponentų detektorius

Komponentų detektorius automatiškai identifikuoja kokį frontend karkasą naudoja svetainė ir atskleidžia pilną komponentų medį.

Ar kada nors susimąstėte, kokiu framework'u sukurta svetainė? Ar norėjote pamatyti, kaip sudėtinga vartotojo sąsaja suskaidyta į komponentus? Component Detector akimirksniu atsako į abu klausimus. Jis nuskaito puslapį ieškodamas konkrečiam framework'ui būdingų požymių (React fiber mazgų, Vue komponentų egzempliorių, Angular zonos žymeklių, Svelte komponentų metaduomenų) ir nustato framework'ą, jo versiją bei visą komponentų medį. React ir Vue atveju įrankis eina dar toliau — parodo komponentų props ir state reikšmes, todėl galite suprasti, kokie duomenys valdo kiekvieną sąsajos dalį.

Spustelėję bet kurį komponentą medyje, paryškinsite atitinkamą DOM elementą puslapyje, arba spustelėję elementą puslapyje — surasite jo komponentą medyje. Tai tarsi React DevTools ar Vue DevTools, tačiau integruota tiesiai į jūsų puslapį kaip lengvas plaukiojantis skydelis, veikiantis be poreikio kiekvienam projektui diegti atskirą, tam framework'ui skirtą plėtinį.

Aptikimas veikia net minifikuotose, produkcinėms sąlygoms suglaudintose svetainėse, kur komponentų ir kintamųjų pavadinimai yra sujaukti — įrankis ieško struktūrinių požymių, o ne pasikliauja skaitomu pradiniu kodu, todėl jis veikia net svetainėse, kurios niekada neišleido source map failo. Be keturių pagrindinių framework'ų, jis taip pat atpažįsta virš jų sluoksniuotus meta-framework'us, tokius kaip Next.js ir Nuxt, ir juos nurodo kaip atskirą sluoksnį nuo pagrindinės React ar Vue vykdymo aplinkos. Tai leidžia greitai orientuotis, kai patenkate į nepažįstamą kodo bazę ar konkurento svetainę ir prieš gilinantis norite suprasti, į ką žiūrite.

Tiesioginė peržiūra
example.com/app
Aptiktos puslapio komponentai
<App>
<Navbar>
<Dashboard>
<StatsCard>
<StatsCard>
Komponento detektorius
R
React
v18.2.0 aptikta
▼ App
▼ Navbar
Logo
NavLinks
▼ Dashboard ● pasirinkta
StatsCard ×2
ChartWidget
RecentActivity
Rekvizitai
title"Overview"
loadingfalse
columns2
Pagrindinės savybės

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.

Dažni naudojimo atvejai

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.

Kaip naudoti
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 to Highlight on Page

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.

Pasiruošę išbandyti?

Įdiekite „DevSuite Pro“ nemokamai ir atrakinkite 64+ kūrėjų įrankius savo naršyklei.

Pridėti prie Chrome Pridėti prie Edge Pridėti prie FireFox