2015-08-20 21:20:28 +02:00
|
|
|
//@filename: file.tsx
|
|
|
|
//@jsx: react
|
|
|
|
declare module JSX {
|
|
|
|
interface Element { }
|
|
|
|
interface IntrinsicElements {
|
|
|
|
[s: string]: any;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
declare var React: any;
|
|
|
|
|
2015-08-20 21:30:12 +02:00
|
|
|
<div>Dot goes here: · ¬AnEntity; </div>;
|
2015-12-29 21:39:27 +01:00
|
|
|
<div>Be careful of "-ed strings!</div>;
|
2016-09-07 15:34:28 +02:00
|
|
|
<div>{{braces}}</div>;
|
2016-09-08 16:49:29 +02:00
|
|
|
// Escapes do nothing
|
|
|
|
<div>\n</div>;
|
|
|
|
|
|
|
|
// Also works in string literal attributes
|
|
|
|
<div attr="{…}\"></div>;
|
|
|
|
// Does not happen for a string literal that happens to be inside an attribute (and escapes then work)
|
|
|
|
<div attr={"{…}\""}></div>;
|
|
|
|
// Preserves single quotes
|
2019-12-18 02:32:48 +01:00
|
|
|
<div attr='"'></div>;
|
|
|
|
// https://github.com/microsoft/TypeScript/issues/35732
|
|
|
|
<div>🐈🐕🐇🐑</div>;
|