apheleia/test/formatters/samplecode/denofmt-tsx/out.tsx
2023-11-29 19:25:11 +00:00

19 lines
259 B
TypeScript

const Foo: FooComponent = ({
name: string,
test: number,
}) => {
return (
<>
<h1>hello, {name}</h1>
<div>{test}</div>
</>
);
};
const Bar: BarComponent = () => {
return (
<>
<Foo name="aaa" test={1} />
</>
);
};