Reactjs – Call object's methods from React components
I have playerInstance variable on which I can call methods like togglePlay(). I wanna be able to call it's methods from different components. I tried to do this which Context API but it only works for sharing properties, when I'm…