Last active
April 12, 2022 22:35
-
-
Save henev/211d139ced62fcdf4bdff56af7936f34 to your computer and use it in GitHub Desktop.
useToast Hook
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useContext } from 'react'; | |
import { ToastContext } from './ToastContext'; | |
export const useToast = () => useContext(ToastContext); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment