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

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