mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
## 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]>
21 lines
339 B
TypeScript
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>
|
|
);
|
|
}
|