rsnext/test/integration/optional-chaining-nullish-coalescing/pages/nullish-coalescing.js

10 lines
150 B
JavaScript
Raw Normal View History

let hello
let another = ''
export default () => (
<>
<p>result1: {hello ?? 'fallback'}</p>
<p>result2: {another ?? 'fallback'}</p>
</>
)