Check if the video is fully in view, and if so, play it; otherwise, pause.The muted attribute is added to ensure autoplay on most browsers.
This Post includes a ReactJs cheat sheet to make it easy for our followers to work with Reactjs.