mirror of
https://github.com/vale981/apheleia
synced 2025-03-05 17:41:41 -05:00
21 lines
271 B
TypeScript
21 lines
271 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} />
|
||
|
</>
|
||
|
)
|
||
|
}
|