blob: c008c4d91c4b734b870df71ebb4bafaa9b4df01b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
import { Link } from "waku";
import { Counter } from "../components/counter";
export default async function HomePage() {
const data = await getData();
return (
<div>
<title>{data.title}</title>
<h1 className="text-4xl font-bold tracking-tight">{data.headline}</h1>
<p>{data.body}</p>
<Counter />
<Link to="/about" className="mt-4 inline-block underline">
About page
</Link>
</div>
);
}
const getData = async () => {
const data = {
title: "Waku",
headline: "Waku",
body: "Hello world!",
};
return data;
};
export const getConfig = async () => {
return {
render: "static",
} as const;
};
|