swc/crates/swc_ecma_parser/tests/tsc/jsxJsxsCjsTransformNestedSelfClosingChild.tsx
2022-02-04 17:08:38 +09:00

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>
)