samedi 4 avril 2020

How can I mute the material ui sounds in my react project with a checkbox using the useState hook?

const [checked, setChecked] = useState(false);

const handleMute = () => setChecked(!checked)

const randomizeLabelHandler = () => {
    props.onRandomizeLabels();
    playSound(resetAudio);

}



Aucun commentaire:

Enregistrer un commentaire