swc/tests/tsc-references/jsx/tsxDefaultAttributesResolution3x/input.tsx/es2015.1.normal/output.js

17 lines
374 B
JavaScript

// @filename: file.tsx
// @jsx: preserve
// @noLib: true
// @skipLibCheck: true
// @libFiles: react.d.ts,lib.d.ts
const React = require('react');
class Poisoned extends React.Component {
render() {
return(/*#__PURE__*/ React.createElement("div", null, "Hello"));
}
}
// Error
let p = /*#__PURE__*/ React.createElement(Poisoned, {
x: true
});
export { };