Last active
January 4, 2024 02:22
-
-
Save rahulmore01/e49aa02eda144a49b4c287d2466e8d8a to your computer and use it in GitHub Desktop.
react-hot-toast
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import "./globals.css"; | |
| import { Inter } from "next/font/google"; | |
| import { Toaster } from "react-hot-toast"; | |
| const inter = Inter({ subsets: ["latin"] }); | |
| export const metadata = { | |
| title: "Create Next App", | |
| description: "Generated by create next app", | |
| }; | |
| export default function RootLayout({ children }) { | |
| return ( | |
| <html lang="en"> | |
| <body className={inter.className}> | |
| // make sure to keep toaster above children | |
| <Toaster position="bottom-center" /> | |
| {children} | |
| </body> | |
| </html> | |
| ); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@TheLegendaryJedi i have updated it, @rahulmoreweb3 my Twitter, let's connect.