Skip to content

Instantly share code, notes, and snippets.

View pablo-rufat's full-sized avatar
🏠
Working from home

Pablo Rufat pablo-rufat

🏠
Working from home
View GitHub Profile
import { toast } from 'react-toastify';
import { useState, useEffect } from 'react';
function Componente() {
const [toastAudio, setToastAudio] = useState(false);
const chamadaApi = async () => {
//...
toast.error();
setToastAudio(true);