apheleia/test/formatters/samplecode/denofmt-tsx/in.tsx

21 lines
271 B
TypeScript
Raw Normal View History

2023-11-30 03:25:11 +08:00
const Foo: FooComponent = ({
name: string,
test: number}
) => {
return <>
<h1>hello, {name}</h1>
<div>{test}</div>
</>
;
};
const Bar
: BarComponent = ()=> {
return (
<>
<Foo name="aaa"
test={1} />
</>
)
}