aboutsummaryrefslogtreecommitdiff
path: root/test/formatters/samplecode/denofmt-tsx/out.tsx
blob: 8825eb579c8ed181a1b7957e1ed4e39088762f52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
const Foo: FooComponent = ({
  name: string,
  test: number,
}) => {
  return (
    <>
      <h1>hello, {name}</h1>
      <div>{test}</div>
    </>
  );
};

const Bar: BarComponent = () => {
  return (
    <>
      <Foo name="aaa" test={1} />
    </>
  );
};