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

19 lines
298 B
TypeScript

//@filename: file.tsx
//@jsx: react
declare module JSX {
interface Element { }
interface IntrinsicElements {
[s: string]: any;
}
}
declare var React: any;
var p: any;
var openClosed1 = <div>
{blah}
</div>;
// Should emit React.__spread({}, p, {x: 0})
var spread1 = <div {...p} x={0} />;