TypeScript/tests/baselines/reference/jsxParsingError4(strict=false).js

21 lines
327 B
TypeScript

//// [a.tsx]
declare const React: any
declare namespace JSX {
interface IntrinsicElements {
[k: string]: any
}
}
const a = (
<public-foo></public-foo>
);
const b = (
<public></public>
);
//// [a.js]
var a = (React.createElement("public-foo", null));
var b = (React.createElement("public", null));