react-simple-fullscreen
v0.1.0
Published
Hook to make an element fullscreen
Downloads
40
Readme
react-simple-fullscreen
Hook to make an element fullscreen.
Installation
npm i react-simple-fullscreen
Usage
import { useFullscreen } from "react-simple-fullscreen";
export function Main() {
const fullscreenRef = useFullscreen();
return (
<main className="bg-white" ref={fullscreenRef}>
Push F key to fullscreen
</main>
);
}
License
MIT