mirror of
https://github.com/bendtherules/some-hooks.git
synced 2026-08-18 13:52:05 +00:00
init create-react-hook@2.6.18
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
# 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).
|
||||
Reference in New Issue
Block a user