mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 11:11:30 +03:00
24 lines
331 B
TypeScript
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>
|
|
) |