Get started with solid-toast
mainTo use solid-toast, you must first add the <Toaster /> component to your component tree. This component acts as the container that renders all toasts. Once the <Toaster /> is mounted, you can trigger notifications from anywhere in your application using the toast() function.
import toast, { Toaster } from 'solid-toast';
const notify = () => toast('Here is your toast.');
const App = () => {
return (
<div>
<button onClick={notify}>Make me a toast</button>
<Toaster />
</div>
);
};