React Hot Toast
react-hot-toast
Smoking hot React Notifications. Lightweight, customizable and beautiful by default.
Toasts
react
notifications
toast
snackbar
react-hot-toast
Toasts
javascript
npm
frontend
open source
Stars
1
Weekly
0
Open issues
0
Bundle
~60 kB
Installation
npm install react-hot-toastCode example
import toast, { Toaster } from "react-hot-toast";
export function Example() {
return (
<>
<Toaster />
<button type="button" onClick={() => toast.success("Saved")}>
Toast
</button>
</>
);
}Pros & cons
Pros
- Actively maintained by Timo Lins
- 0 weekly downloads. Battle tested
- First-class TypeScript definitions
- MIT licensed
Considerations
- Adds roughly ~60 kB to your bundle
- Needs client-only rendering in SSR frameworks
- Not supported in React Native
- 0 open issues on GitHub