toast notification bootstrap react js github
import { useToasts } from 'react-toast-notifications'
export const ToastDemo = ({ content }) => {
const { addToast } = useToasts()
return (
<Button onClick={() => addToast(content, {
appearance: 'warning',
autoDismiss: true,
placement: 'top-center'
})}>
Add Toast
</Button>
)
}