Skip to main content

initToast

Exported from @ryfylke-react/toast

Arguments

initToast takes no arguments, but it does accept a typescript generic - which specifies your desired toast interface.

Returns

You can use subscribeToToasts when outside of React to listen to toast-events.