Files
bun.sh/examples/next/pages/index.tsx
2021-11-03 00:22:37 -07:00

37 lines
952 B
TypeScript

import Head from "next/head";
import Link from "next/link";
import React from "react";
import styles from "../styles/Home.module.css";
import nextPackage from "next/package.json";
export async function getStaticProps(ctx) {
return {
props: {},
};
}
export default function Home({}) {
return (
<div className={styles.container}>
<Head>
<title>Next.js</title>
<meta name="description" content="Generated by create next app" />
<link rel="icon" href="/favicon.ico" />
</Head>
<main className={styles.main}>
<h1 className={styles.title}>
Welcome to <a href="https://nextjs.org">Next.js!</a> v
{nextPackage.version}
</h1>
<p className={styles.description}>
Get started by editing{" "}
<code className={styles.code}>pages/index.tsx</code>
</p>
</main>
<footer className={styles.footer}></footer>
</div>
);
}