Files
bun-src/test/bundler/transpiler/react-compiler-fixtures/babel-existing-react-namespace-import.js
T

15 lines
345 B
JavaScript
Raw Normal View History

2026-08-27 21:09:14 +00:00
import * as React from 'react';
import {calculateExpensiveNumber} from 'shared-runtime';
function Component(props) {
const [x] = React.useState(0);
const expensiveNumber = React.useMemo(() => calculateExpensiveNumber(x), [x]);
return <div>{expensiveNumber}</div>;
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [],
};