swc/crates/swc_ecma_parser/tests/tsc/jsxJsxsCjsTransformNestedSelfClosingChildx.tsx

24 lines
331 B
TypeScript

// @jsx: react-jsx,react-jsxdev
// @strict: true
// @module: commonjs
/// <reference path="/.lib/react16.d.ts" />
import type * as React from 'react';
console.log(
<div>
<div />
</div>
)
console.log(
<div>
<div />
<div />
</div>
)
console.log(
<div>
{[1, 2].map(i => <div key={i}>{i}</div>)}
</div>
)