docs: add nextjs example (#544)

This commit is contained in:
Cupid Valentine
2023-08-12 10:53:25 +08:00
committed by GitHub
parent 75154869a8
commit d5604d44f8
15 changed files with 3657 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
import './globals.css'
import type { Metadata } from 'next'
import { Inter } from 'next/font/google'
const inter = Inter({ subsets: ['latin'] })
export const metadata: Metadata = {
title: 'Create Next App',
description: 'Generated by create next app',
}
export default function RootLayout({
children,
}: {
children: React.ReactNode
}) {
return (
<html lang="en">
<body className={inter.className}>{children}</body>
</html>
)
}