UNPKG

muinotify

Version:

muinotify has an imperative API that makes it easy to display snackbars, without having to handle their open/close state. It also enables you to stack them on top of one another (although this is discouraged by the Material Design guidelines).

7 lines (4 loc) 146 B
import { useContext } from "react"; import Context from "./context"; const useNotifier = () => useContext(Context); export default useNotifier;