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

18 lines
340 B
TypeScript
Raw Normal View History

2015-08-20 20:38:03 +02:00
//@filename: file.tsx
//@jsx: react
declare module JSX {
interface Element { }
interface IntrinsicElements {
[s: string]: any;
}
}
declare var React: any;
// Emit ' word' in the last string
<div>word <code>code</code> word</div>;
// Same here
<div><code>code</code> word</div>;
// And here
<div><code /> word</div>;