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).

11 lines (6 loc) 201 B
import { createContext } from "react"; const Context = createContext(); const Consumer = Context.Consumer; const Provider = Context.Provider; export { Consumer, Provider }; export default Context;