We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7b89d4 commit 4b6eef6Copy full SHA for 4b6eef6
src/pages/about.tsx
@@ -12,7 +12,7 @@ export async function clientLoader() {
12
13
return {
14
title: "About page",
15
- data
+ data,
16
};
17
}
18
@@ -26,7 +26,9 @@ export default function Component({ loaderData }: { loaderData: LoaderData }) {
26
<h1 className="mb-6">{loaderData.title}</h1>
27
<Link to="/">Home</Link>
28
<p className="mt-6">Loaded data:</p>
29
- <pre className="bg-[black] rounded-xl border border-secondary p-6 mt-3">{JSON.stringify(loaderData, null, 2)}</pre>
+ <pre className="bg-[black] rounded-xl border border-secondary p-6 mt-3">
30
+ {JSON.stringify(loaderData, null, 2)}
31
+ </pre>
32
</>
33
);
34
0 commit comments