Try this :
const handleAudio = (audioRef)=>{ if(audioRef.current){ audioRef.current.currentTime = 0; audioRef.current.play(); } }