Show Toast
Various Toast Functions
It provides a toast function with various icons as well as basic toast.
Data from functions other than default receives only the jsx element as a parameter.
default
toast('default')
success
toast.success('success')
error
toast.error('error')
warn
toast.warn('warn')
loading
toast.loading('loading')
promise
toast.promise(promise, {
loading: 'loading',
success: 'success',
error: 'error',
});
For more detailed promise information, please refer to the promise page