Files
react/compiler/crates/react_hermes_parser/tests/fixtures/hook-inside-logical-expression.js

5 lines
110 B
JavaScript

function Component(props) {
const user = useFragment(graphql`...`, props.user) ?? {};
return user.name;
}