Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/jgierer12/hooks

My personal library of reusable React hooks
https://github.com/jgierer12/hooks

Last synced: 2 months ago
JSON representation

My personal library of reusable React hooks

Awesome Lists containing this project

README

        

> My personal library of reusable React hooks

# Installation

GitHub Package Registry

This package is published on both the
[GitHub Package Registry](https://github.com/features/package-registry) and the
npm registry. To use the GPR, change the registry for the `@jgierer12` scope
before installing:

```sh
echo "@jgierer12:registry=https://npm.pkg.github.com" >> .npmrc
```

```sh
npm install @jgierer12/hooks
```

```js
import { useMount } from "@jgierer12/hooks";
useMount(...)

// or

import * as hooks from "@jgierer12/hooks";
hooks.useMount(...)
```

# API

{{>main}}

# License

[MIT](LICENSE) © 2019 Jonas Gierer