Files
a2e3b27dfc Migrate the with-jotai example from page router to app router (#63390)
## Migrate the with-jotai example from page router to app router

Please if it needs further updates, Let me know!
Happy to contribute

---------

Co-authored-by: Sam Ko <[email protected]>
2024-03-18 21:28:29 +00:00

34 lines
968 B
TypeScript

import Image from "next/image";
import styles from "../styles/Home.module.css";
import "../styles/globals.css";
import Canvas from "../components/Canvas";
import { Metadata } from "next";
export const metadata: Metadata = {
title: "with-jotai",
description: "Generated by create next app",
};
export default function Home() {
return (
<div className={styles.container}>
<h1 className={styles.title}>With Jotai example</h1>
<main className={styles.main}>
<Canvas />
</main>
<footer className={styles.footer}>
<a
href="https://vercel.com?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
Powered by{" "}
<span className={styles.logo}>
<Image src="/vercel.svg" alt="Vercel Logo" width={72} height={16} />
</span>
</a>
</footer>
</div>
);
}