mirror of
https://github.com/swc-project/swc.git
synced 2025-01-03 11:01:52 +03:00
17 lines
374 B
JavaScript
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 { };
|