rsnext/test/integration/optional-chaining-nullish-coalescing/pages/nullish-coalescing.js
JJ Kasper 963d598dc1
Add tests for optional chaining and nullish coalescing (#9665)
* Add tests for optional chaining and nullish coalescing

* Add integration tests
2019-12-08 12:38:22 -06:00

9 lines
150 B
JavaScript

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