mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
c9ec55e635
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.
6 lines
166 B
JavaScript
6 lines
166 B
JavaScript
// @loggerTestOnly @validateStaticComponents @outputMode:"lint"
|
|
function Example() {
|
|
const Component = ({x}) => <div>{x}</div>;
|
|
return <Component x="value" />;
|
|
}
|