enqueueSnackbar position code example
Example 1: Notistack
import { useSnackbar } from 'notistack';
const MyButton = () => {
const { enqueueSnackbar, closeSnackbar } = useSnackbar();
const handleClick = () => {
enqueueSnackbar('I love hooks');
};
return (
);
}
Example 2: notistack snackbar
import { SnackbarProvider } from 'notistack';