Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit daa1977

Browse files
author
Je
committed
chore: update hello example
1 parent 992d1e3 commit daa1977

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

examples/hello-world/app.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import React, { Fragment, PropsWithChildren } from 'https://esm.sh/react'
1+
import React, { ComponentType } from 'https://esm.sh/react'
22
import { Head } from 'https://deno.land/x/aleph/mod.ts'
33

4-
export default function App({ children }: PropsWithChildren<{}>) {
4+
export default function App({ Page }: { Page: ComponentType<any> }) {
55
return (
6-
<Fragment>
6+
<>
77
<Head>
88
<title>Hello World - AlephJS</title>
99
</Head>
10-
{children}
11-
</Fragment>
10+
<Page />
11+
</>
1212
)
1313
}

0 commit comments

Comments
 (0)