Files
bun-src/test/bundler/transpiler/react-compiler-fixtures/unclosed-eslint-suppression-skips-all-components.js
2026-08-27 21:09:14 +00:00

13 lines
324 B
JavaScript

// @panicThreshold:"none" @validateExhaustiveMemoizationDependencies:false
// unclosed disable rule should affect all components
/* eslint-disable react-hooks/rules-of-hooks */
function ValidComponent1(props) {
return <div>Hello World!</div>;
}
function ValidComponent2(props) {
return <div>{props.greeting}</div>;
}