Reactjs – How is React-Hot-Toast state is being accessed by an export
How is react-hot-toast allowing its state to be changed from another components just by exporting the components in react-hot-toast/src/index.ts by: export default toast; Usage in Nextjs14: =Layout.tsx: import { Toaster } from "react-hot-toast"; <body> {children} <Toaster /> </body> =page.tsx import…