Files
oxc-project__oxc/crates/oxc_react_compiler/fixtures/static-components/invalid-dynamically-constructed-component-arrow-destructured-param.js
Boshen c9ec55e635 fix(react-compiler): improve diagnostic spans (#25731)
Improve React Compiler diagnostics with focused primary spans and related labels for declarations, dependencies, effects, nested functions, dynamic Hooks, and transitive ref access. This avoids full-function highlights and fixes zero-width arrow labels when lowered parameter spans are missing.

Validation: `env -u NO_COLOR just ready`.

AI-generated with Codex; reviewed and validated by the contributor.
2026-08-16 03:22:59 +00:00

6 lines
166 B
JavaScript

// @loggerTestOnly @validateStaticComponents @outputMode:"lint"
function Example() {
const Component = ({x}) => <div>{x}</div>;
return <Component x="value" />;
}