<img src="https://badgen.net/npm/v/react-hot-toast" alt="NPM Version" />
Smoking hot Notifications for React.
Lightweight, customizable and beautiful by default.
Website · Documentation · Twitter
Cooked by Timo Lins 👨🍳
useToaster()pnpm add react-hot-toast
npm install react-hot-toast
Add the Toaster to your app first. It will take care of rendering all notifications emitted. Now you can trigger toast() from anywhere!
import toast, { Toaster } from 'react-hot-toast';
const notify = () => toast('Here is your toast.');
const App = () => {
return (
<button onClick={notify}>Make me a toast</button>
<Toaster />
);
};
Find the full API reference on official documentation.
$ claude mcp add react-hot-toast \
-- python -m otcore.mcp_server <graph>