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

21 lines
339 B
TypeScript

import { Provider } from "jotai";
import { Metadata } from "next";
export const metadata: Metadata = {
icons: "/favicon.ico",
};
export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<html lang="en">
<body>
<Provider>{children}</Provider>
</body>
</html>
);
}