TypeScript/tests/cases/conformance/jsx/tsxReactEmit4.tsx

19 lines
316 B
TypeScript
Raw Normal View History

2015-06-18 23:03:43 +02:00
//@filename: file.tsx
//@jsx: react
declare module JSX {
interface Element { }
interface IntrinsicElements {
[s: string]: any;
}
}
2015-07-07 20:37:55 +02:00
declare var React: any;
2015-06-18 23:03:43 +02:00
2016-11-08 18:19:04 +01:00
var p: any;
2015-06-18 23:03:43 +02:00
var openClosed1 = <div>
{blah}
</div>;
// Should emit React.__spread({}, p, {x: 0})
var spread1 = <div {...p} x={0} />;