Files
bun-src/test/bundler/transpiler/react-compiler-fixtures/object-method-maybe-alias.js
T
2026-08-27 21:09:14 +00:00

20 lines
333 B
JavaScript

import {createHookWrapper, setProperty} from 'shared-runtime';
function useHook(props) {
const x = {
getX() {
return props;
},
};
const y = {
getY() {
return 'y';
},
};
return setProperty(x, y);
}
export const FIXTURE_ENTRYPOINT = {
fn: createHookWrapper(useHook),
params: [{value: 0}],
};