dillon1000/react

Commit

[react-devtools-cdt-mcp] add DOM element component lookup (#36822)

Integrates newly added `getComponentByHostInstance` tool from
`react-devtools-facade` into `react-devtools-cdt-mcp`.

The API uses `uid` of the element from CDT MCP tree snapshot, but under
the hood it gets converted to the DOM Element reference, which is
exactly what we pass to `getComponentByHostInstance`.
Browse files
Changed paths3 files
First-parent comparison
M packages/react-devtools-cdt-mcp/README.md ModifiedM packages/react-devtools-cdt-mcp/src/DevToolsCdtMcp.js ModifiedM packages/react-devtools-cdt-mcp/src/__tests__/DevToolsCdtMcp-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…