mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 22:56:11 +03:00
18 lines
509 B
TypeScript
18 lines
509 B
TypeScript
//@filename: file.tsx
|
|
//@jsx: react
|
|
|
|
declare module JSX {
|
|
interface Element { }
|
|
interface IntrinsicElements {
|
|
[s: string]: any;
|
|
}
|
|
}
|
|
declare var React: any;
|
|
|
|
<></>; // no whitespace
|
|
< ></ >; // lots of whitespace
|
|
< /*starting wrap*/ ></ /*ending wrap*/>; // comments in the tags
|
|
<>hi</>; // text inside
|
|
<><span>hi</span><div>bye</div></>; // children
|
|
<><span>1</span><><span>2.1</span><span>2.2</span></><span>3</span></>; // nested fragments
|
|
<>#</>; // # would cause scanning error if not in jsxtext
|