TypeScript/tests/cases/compiler/jsxFactoryQualifiedNameWithEs5.ts
Sheetal Nandi 20a8a30b76 Instead of creating clone of the jsxFactory's leaf node, create synthesized node
Fixes #12467
This avoid setting original node which would be something from isolated parsing and hence not valid when resolving expression
2016-11-23 12:26:02 -08:00

17 lines
287 B
TypeScript

//@module: commonjs
//@target: es5
//@jsx: react
//@jsxFactory: skate.h
//@noEmit: false
// @filename: index.tsx
import "./jsx";
var skate: any;
const React = { createElement: skate.h };
class Component {
renderCallback() {
return <div>test</div>;
}
};