CoastalCommitsPastes/client/app/page.tsx
2022-11-09 18:38:05 -08:00

12 lines
305 B
TypeScript

import { getWelcomeContent } from "pages/api/welcome"
const getWelcomeData = async () => {
const welcomeContent = await getWelcomeContent()
return welcomeContent
}
export default async function Page() {
const welcomeData = await getWelcomeData()
return <h1>{JSON.stringify(welcomeData)}</h1>
}