mirror of
https://github.com/facebook/react.git
synced 2026-02-27 03:07:57 +00:00
8 lines
221 B
JavaScript
8 lines
221 B
JavaScript
// Note that `a?.b.c` is semantically different from `(a?.b).c`
|
|
// We should codegen the correct member expressions
|
|
function Component(props) {
|
|
let x = props?.b.c;
|
|
let y = props?.b.c.d?.e.f.g?.h;
|
|
return { x, y };
|
|
}
|