73 lines
819 B
JavaScript
73 lines
819 B
JavaScript
<></>;
|
|
|
|
<>
|
|
text
|
|
</>;
|
|
|
|
<>
|
|
<Component />
|
|
<Component />
|
|
</>;
|
|
|
|
<>
|
|
text
|
|
<h2>heading</h2>
|
|
text
|
|
<h2>heading</h2>
|
|
text
|
|
</>;
|
|
|
|
<div>
|
|
<>
|
|
<>
|
|
<span>Hello</span>
|
|
<span>world</span>
|
|
</>
|
|
<>
|
|
<span>Goodbye</span>
|
|
<span>world</span>
|
|
</>
|
|
</>
|
|
</div>;
|
|
|
|
foo = (
|
|
// comment
|
|
<></>
|
|
);
|
|
|
|
</* open fragment */>
|
|
<Component />
|
|
<Component />
|
|
</ /* close fragment */>;
|
|
|
|
< // open fragment
|
|
>
|
|
<Component />
|
|
<Component />
|
|
</ // close fragment
|
|
>;
|
|
|
|
[<></>, <></>];
|
|
const fun1 = () => <></>;
|
|
x = <></>
|
|
function fun2(param = <></>) {}
|
|
1 + <></>;
|
|
1 || <></>;
|
|
fun2(<></>);
|
|
test ? <></> : x;
|
|
<></>;
|
|
<a>
|
|
<></>
|
|
</a>;
|
|
const obj = {
|
|
foo: <></>
|
|
};
|
|
const fragmentVar = <></>;
|
|
function fun3() {
|
|
return <></>;
|
|
}
|
|
(<></>).toString();
|
|
(<></>).props;
|
|
(<></>)["computed"];
|
|
(<></>)["computed"]();
|