toast library react code example
Example: react toast
import { ToastProvider } from 'react-toast-notifications';
import { Snack } from '../snackbar';
const App = () => (
<ToastProvider
autoDismiss
autoDismissTimeout={6000}
components={{ Toast: Snack }}
placement="bottom-center"
appearance: 'success',
autoDismiss: true,
>
...
</ToastProvider>
);