一覧へ戻る
timolins/react-hot-toast(新しいタブで開きます)
主要言語: TypeScript
Smoking Hot React Notifications 🔥
- star 数
- 10,990
- watcher 数
- 25
- fork 数
- 376
- issue 数
- 142
- 最終更新
- 2026/09/16
主要言語: TypeScript
Smoking Hot React Notifications 🔥
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 ( <div> <button onClick={notify}>Make me a toast</button> <Toaster /> </div> ); };
Find the full API reference on official documentation.