Follow

Today in A Backender Mucks With Clientside:

toast(promise, { success: '🎉', error: '😭', loading: '⏳' })

Love it. LOVE IT. It even returns the promise and throws the error so the rest of my chain still works.

react-hot-toast.com/docs/toast

· · Web · 0 · 0 · 0
Sign in to participate in the conversation
Mastodon for Tech Folks

This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!