import React, { useEffect, useRef } from "react";

const PlayMusic = () => {
    const audioRef = useRef(null);
    
    return (
        <div>
            <audio
                ref={audioRef}
                src="/assets/sounds/backsound.mp3"
                loop
                autoPlay
                preload="auto"
            />
        </div>
    );
};

export default PlayMusic;
