mirror of
https://github.com/bendtherules/some-hooks.git
synced 2026-08-18 13:52:05 +00:00
37 lines
702 B
Markdown
37 lines
702 B
Markdown
# some-hooks
|
|
|
|
> Collection of some reusable hooks that I use
|
|
|
|
[](https://www.npmjs.com/package/some-hooks) [](https://standardjs.com)
|
|
|
|
## Install
|
|
|
|
```bash
|
|
npm install --save some-hooks
|
|
```
|
|
|
|
## Usage
|
|
|
|
```tsx
|
|
import * as React from 'react'
|
|
|
|
import { useMyHook } from 'some-hooks'
|
|
|
|
const Example = () => {
|
|
const example = useMyHook()
|
|
return (
|
|
<div>
|
|
{example}
|
|
</div>
|
|
)
|
|
}
|
|
```
|
|
|
|
## License
|
|
|
|
MIT © [bendtherules](https://github.com/bendtherules)
|
|
|
|
---
|
|
|
|
This hook is created using [create-react-hook](https://github.com/hermanya/create-react-hook).
|