Why the Youtube Iframe API runs only once inside useEffect?
I am using the Youtube Iframe API’s first example in my react app. The problem I am facing is that when I reload the page everything works fine for the first time but when I change any settings like autoplay, loop from sidebar it stops working. I am following the first Iframe example from the documentation.