next.js/test/integration/optional-chaining-nullish-coalescing/pages/optional-chaining.js
optional-chaining.js10 lines198 B
let hello
let another = { thing: 1 }

export default () => (
  <>
    <p>result1: {hello?.world ? 'something' : 'nothing'}</p>
    <p>result2: {another?.thing ? 'something' : 'nothing'}</p>
  </>
)
Quest for Codev2.0.0
/
SIGN IN