An open API service indexing awesome lists of open source software.

https://github.com/uniquexiaobai/react-use-hooks

Some React Hooks
https://github.com/uniquexiaobai/react-use-hooks

Last synced: 2 months ago
JSON representation

Some React Hooks

Awesome Lists containing this project

README

        

# @lokibai/react-use-hooks

> react hooks

[![NPM](https://img.shields.io/npm/v/@lokibai/react-use-hooks.svg)](https://www.npmjs.com/package/@lokibai/react-use-hooks)

## Install

```bash
npm i @lokibai/react-use-hooks
```

## Usage

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

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

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

return {String(on)};
};
```

## Index

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

## License

MIT © [](https://github.com/)