0.0.6 • Published 3 years ago

bee-hooks v0.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
3 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

3 years ago

0.0.6

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago