Closed enggsatyamraj closed 3 months ago
i have to import { ToastContainer, toast } from 'react-toastify';
in every page, can anyone tell me, how to get rid of this
add the <ToastContainer ... /> in the root layout of you app
<ToastContainer ... />
But there is not root directory in it I guess. Will adding this in page.js of app folder work ????
take a look here: https://nextjs.org/docs/app/building-your-application/routing/pages-and-layouts#root-layout-required
i have to import { ToastContainer, toast } from 'react-toastify';
in every page, can anyone tell me, how to get rid of this