0.0.6 • Published 2 years ago

bee-hooks v0.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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

0.0.5

2 years ago

0.0.6

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago