bee-hooks
TypeScript icon, indicating that this package has built-in type declarations

0.0.6Β β€’Β PublicΒ β€’Β Published

bee-hooks 🐝

bee-hooks help you create UI in React quickly and easily.
Currently studying and developing slowly.
Let me know if you have any interesting features!

useFullscreen

normal mode

const { toggle, isFullscreen } = useFullscreen();

<span>Normal Fullscreen mode.</span>
<Button onClick={toggle}>{isFullscreen ? 'set normal mode' : 'set fullscreen mode'}</Button>

ref fullscreen mode

const { fullscreenRef, toggle, isFullscreen } = useFullscreen();

<div ref={fullscreenRef}>
  🐝
</div>
<span>If you don't use fullscreenRef, the entire screen will be fullscreen.</span>
<Button onClick={toggle}>{isFullscreen ? 'set normal mode' : 'set ref fullscreen mode'}</Button>

usePageLeave

Package Sidebar

Install

npm i bee-hooks

Weekly Downloads

0

Version

0.0.6

License

MIT

Unpacked Size

20.2 kB

Total Files

33

Last publish

Collaborators

  • happydhkim