Files
bun-src/test/bundler/transpiler/react-compiler-fixtures/error.invalid-pass-mutable-function-as-prop.js
T
2026-08-27 21:09:14 +00:00

9 lines
179 B
JavaScript

// @validateNoFreezingKnownMutableFunctions
function Component() {
const cache = new Map();
const fn = () => {
cache.set('key', 'value');
};
return <Foo fn={fn} />;
}