Full screen mode for a React component?

Hi, I need to be able to run a video in fullscreen mode when clicking on a custom button. What I have already managed to create is to run the Play() method using the hook useRef. Have any of you managed to do something like this?