mirror of
https://github.com/swc-project/swc.git
synced 2024-12-20 12:12:16 +03:00
17 lines
421 B
TypeScript
17 lines
421 B
TypeScript
|
//@filename: file.tsx
|
||
|
//@jsx: react
|
||
|
declare module JSX {
|
||
|
interface Element { }
|
||
|
interface IntrinsicElements {
|
||
|
[s: string]: any;
|
||
|
}
|
||
|
}
|
||
|
declare var React: any;
|
||
|
|
||
|
var p1: any, p2: any, p3: any;
|
||
|
var spreads1 = <div {...p1}>{p2}</div>;
|
||
|
var spreads2 = <div {...p1}>{p2}</div>;
|
||
|
var spreads3 = <div x={p3} {...p1}>{p2}</div>;
|
||
|
var spreads4 = <div {...p1} x={p3} >{p2}</div>;
|
||
|
var spreads5 = <div x={p2} {...p1} y={p3}>{p2}</div>;
|