Files
bun-src/test/bundler/transpiler/react-compiler-fixtures/hook-noAlias.js
T

16 lines
306 B
JavaScript
Raw Normal View History

2026-08-27 21:09:14 +00:00
import {useNoAlias} from 'shared-runtime';
function Component(props) {
const item = {a: props.a};
const x = useNoAlias(item, () => {
console.log(props);
}, [props.a]);
return [x, item];
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [{a: {id: 42}}],
isComponent: true,
};