swc/benches/bugs/1/input.tsx
Donny/강동윤 6a41e9a0be
fix(es): Fix performance bugs (#2313)
swc_common:
 - Optimize `SourceMap.span_until_char`.

swc_ecma_codegen:
 - Make `Emitter` generic.

swc_ecma_parser:
 - `Lexer`: Reuse allocation of `String`.
 - `Lexer`: Avoid copying useless data.
2021-09-29 12:10:38 +00:00

22 lines
652 B
TypeScript

import { CONST } from "removed/constants";
import Comp1 from "removed/1";
import Comp2 from "removed/2";
import Comp3 from "removed/3";
import Comp4 from "removed/4";
export default function HiddenComponent() {
return (
<Comp1 title={`My title`} hideHeader fullViewport>
<Comp2
image="/example.com/images/my.png"
title={`Title of an exmaple page`}
url={`${CONST}/directory`}
description="Hidden component, and maybe it's a good input for performance bug"
/>
<Comp4>
<Comp3 />
</Comp4>
</Comp1>
);
}