Wallpaper Sample
A simple wallpaper
Usage
1
Install react-toastify npm package
npm i react-toastify
2
Import in the root directory
import { ToastContainer } from "react-toastify";
import "react-toastify/dist/ReactToastify.css";
This import gives access to the toast object where all the methods live. Since it is in the root directory, it is accessible over all the pages in your app.
3
Use toast in your app
Use the below syntax to get access to the toast component and use it accordingly.
toast.success("🚀 Logged out successfully!");