Files
bun-src/test/bundler/transpiler/react-compiler-fixtures/infer-no-component-nested-jsx.expect.md
T

51 lines
685 B
Markdown
Raw Normal View History

2026-08-27 21:09:14 +00:00
## Input
```javascript
// @expectNothingCompiled @compilationMode:"infer"
function Component(props) {
const result = f(props);
function helper() {
return <foo />;
}
helper();
return result;
}
function f(props) {
return props;
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [{}],
};
```
## Code
```javascript
// @expectNothingCompiled @compilationMode:"infer"
function Component(props) {
const result = f(props);
function helper() {
return <foo />;
}
helper();
return result;
}
function f(props) {
return props;
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [{}],
};
```
### Eval output
(kind: ok) {}