@lokibai/react-use-hooks
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

@lokibai/react-use-hooks

react hooks

NPM

Install

npm i @lokibai/react-use-hooks

Usage

import React from 'react';
import { useBoolean } from '@lokibai/react-use-hooks';

const App = () => {
  const [on, toggle] = useBoolean();

  const onToggle = () => {
    toggle();
  };

  return <button onClick={onToggle}>{String(on)}</button>;
};

Index

  • [x] useMounted
  • [x] useBoolean
  • [x] useDebounce
  • [x] useThrottle
  • [x] useCopyClipboard
  • [x] useInViewport

License

MIT ©

Readme

Keywords

none

Package Sidebar

Install

npm i @lokibai/react-use-hooks

Weekly Downloads

3

Version

0.1.4

License

MIT

Unpacked Size

52.7 kB

Total Files

19

Last publish

Collaborators

  • lokibai