Files
react/compiler/crates/react_hermes_parser/tests/fixtures/nested-optional-member-expr.js
2024-04-02 16:49:31 -07:00

7 lines
181 B
JavaScript

// We should codegen nested optional properties correctly
// (i.e. placing `?` in the correct PropertyLoad)
function Component(props) {
let x = foo(props.a?.b.c.d);
return x;
}