mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
### What? Fix export function name on docs/routing/layouts-and-templates ### Why? The way it is, it will return an error to the user following the tutorial: `Unsupported Server Component type: undefined / next js 13` ### How? - Change `Links()` function export to `NavLinks()` --------- Co-authored-by: JJ Kasper <[email protected]>
19 lines
475 B
TypeScript
19 lines
475 B
TypeScript
import { TodoList } from "./todo-list";
|
|
import { Form } from "./form";
|
|
|
|
export default function Home() {
|
|
return (
|
|
<main className="max-w-2xl mx-auto space-y-12 px-6 py-32">
|
|
<div className="space-y-3 text-center">
|
|
<h1 className="text-3xl font-medium">Turso</h1>
|
|
<p className="text-gray-500">Local SQLite with libSQL and Turso</p>
|
|
</div>
|
|
|
|
<div className="space-y-3">
|
|
<TodoList />
|
|
<Form />
|
|
</div>
|
|
</main>
|
|
);
|
|
}
|