Files
bun-src/test/bundler/transpiler/react-compiler-fixtures/unused-ternary-assigned-to-variable.expect.md
T

24 lines
292 B
Markdown
Raw Normal View History

2026-08-27 21:09:14 +00:00
## Input
```javascript
function Component(props) {
// unused!
const obj = makeObject();
const _ = obj.a ? props.b : props.c;
return null;
}
```
## Code
```javascript
function Component(props) {
const obj = makeObject();
obj.a ? props.b : props.c;
return null;
}
```