Getting Started
Add beautiful notifications to your React app with react-hot-toast.
Install with Yarn
copy
yarn add react-hot-toast
Install with NPM
copy
npm install react-hot-toast
Basic usage
copy
import toast, { Toaster } from 'react-hot-toast';const notify = () => toast('Here is your toast.');const App = () => {return (<div><button onClick={notify}>Make me a toast</button><Toaster /></div>);};