Skip to content

Instantly share code, notes, and snippets.

@kennethnwc
Created June 12, 2020 04:22
Show Gist options
  • Save kennethnwc/5f6e3ea7f94f3344e38c1fdc6165567b to your computer and use it in GitHub Desktop.
Save kennethnwc/5f6e3ea7f94f3344e38c1fdc6165567b to your computer and use it in GitHub Desktop.
with d.ts
import Link from "next/link";
import Layout from "../components/Layout";
import { btn, btnPrimary } from "./_app.module.scss";
const IndexPage = () => (
<Layout title="Home | Next.js + TypeScript Example">
<h1>Hello Next.js 👋</h1>
<p>
<Link href="/about">
<a>About</a>
</Link>
<button className={`${btn} ${btnPrimary}`}>Test</button>
</p>
</Layout>
);
export default IndexPage;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment