mirror of
https://github.com/swc-project/swc.git
synced 2024-12-30 00:52:29 +03:00
12 lines
335 B
TypeScript
12 lines
335 B
TypeScript
// @filename: file.tsx
|
|
// @jsx: preserve
|
|
// @noLib: true
|
|
// @skipLibCheck: true
|
|
// @libFiles: react.d.ts,lib.d.ts
|
|
|
|
import React = require('react');
|
|
|
|
// OK
|
|
let k1 = <div> <h2> Hello </h2> <h1> world </h1></div>;
|
|
let k2 = <div> <h2> Hello </h2> {(user: any) => <h2>{user.name}</h2>}</div>;
|
|
let k3 = <div> {1} {"That is a number"} </div>; |