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

https://github.com/alterx/gundb-react-hooks

A set of React hooks that wrap around GunDB core functionality
https://github.com/alterx/gundb-react-hooks

gundb hooks react react-hooks reactjs

Last synced: over 1 year ago
JSON representation

A set of React hooks that wrap around GunDB core functionality

Awesome Lists containing this project

README

          

# GunDB React hooks

This is a set of hooks that wrap around GunDB core functionality.
API is subject to change, but will more or less remain similar.

## Installing

Use `pnpm`, `npm` or `yarn` to install the dependencies:

```
$ npm i @altrx/gundb-react-hooks
```

## Preact

If you need support for [Preact](https://preactjs.com/) you can import from `@altrx/gundb-react-hooks/preact` instead.

## Hooks

- [useGun](https://github.com/alterx/gundb-react-hooks/blob/master/docs/useGun.md)
- [useGunNamespace](https://github.com/alterx/gundb-react-hooks/blob/master/docs/useGunNamespace.md)
- [useGunKeyAuth](https://github.com/alterx/gundb-react-hooks/blob/master/docs/useGunKeyAuth.md)
- [useGunKeys](https://github.com/alterx/gundb-react-hooks/blob/master/docs/useGunKeys.md)
- [useGunOnNodeUpdated](https://github.com/alterx/gundb-react-hooks/blob/master/docs/useGunOnNodeUpdated.md)
- [useGunState](https://github.com/alterx/gundb-react-hooks/blob/master/docs/useGunState.md)
- [useGunCollectionState](https://github.com/alterx/gundb-react-hooks/blob/master/docs/useGunCollectionState.md)

## Full Example

To see a full example visit https://github.com/alterx/gun-react-todoapp

## License

Licensed under [MIT](https://github.com/alterx/gundb-react-hooks/blob/master/LICENSE.md).