Determines and toggles if the screen/element is in full-screen mode
element?: Node
: A DOM element from a React ref
fullScreen: Boolean
: if the document/element is full-screenopen: Function
: opens full screen modeclose: Function
: closes full screen modetoggle: Function
: toggles full screen mode
import { useFullScreen } from 'react-recipes';
const App = () => {
const { toggle } = useFullScreen();
return <button onClick={toggle}>Toggle Full Screen</button>;
};