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

27 lines
448 B
TypeScript
Raw Normal View History

//@jsx: react
//@module: commonjs
//@filename: file.tsx
declare module JSX {
interface Element { }
interface IntrinsicElements {
[s: string]: any;
}
}
//@filename: react-consumer.tsx
namespace M {
export var React: any;
}
namespace M {
// Should emit M.React.createElement
// and M.React.__spread
2016-11-08 18:19:04 +01:00
var foo: any;
var spread1 = <div x='' {...foo} y='' />;
2015-10-08 20:28:18 +02:00
// Quotes
var x = <div>This "quote" thing</div>;
}
2015-10-08 20:28:18 +02:00