Created
June 19, 2023 18:53
-
-
Save tom-sherman/a42edfdeffaf33a1483a4b90068585ad to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function Layout({ children }: { children: React.ReactNode }) { | |
return ( | |
<html> | |
<body> | |
{children} | |
</body> | |
</html> | |
); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export async function Page() { | |
const time = await fetch("https://...").then(r => r.text()); | |
return <p>The current time is: {time}</p>; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { start } from "php.js"; | |
start({ root: "./layout.tsx" }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment