Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/youaresoroman/react-ipfs

React IPFS instance hooks for easier usage in your DAPPS
https://github.com/youaresoroman/react-ipfs

ipfs react react-hooks reactjs

Last synced: 7 days ago
JSON representation

React IPFS instance hooks for easier usage in your DAPPS

Awesome Lists containing this project

README

        

# react-ipfs

React IPFS instance hooks for easier usage in your DAPPS

![npm](https://img.shields.io/npm/dw/react-ipfs) ![David](https://img.shields.io/david/youaresoroman/react-ipfs) ![GitHub package.json dependency version (prod)](https://img.shields.io/github/package-json/dependency-version/youaresoroman/react-ipfs/ipfs) ![GitHub top language](https://img.shields.io/github/languages/top/youaresoroman/react-ipfs) ![NPM](https://img.shields.io/npm/l/react-ipfs) ![Matrix](https://img.shields.io/matrix/ipfs-awesome:matrix.org?server_fqdn=matrix.org)



Ukraine is currently suffering from Russian aggression, please consider donating to [one of these charities](https://old.reddit.com/r/ukraine/comments/s6g5un/want_to_support_ukraine_heres_a_list_of_charities/).

drawing

## Installation

### npm

```bash
npm install react-ipfs
```

### yarn
```bash
yarn add react-ipfs
```

## Documentation
IPFS core documentation is [here](https://github.com/ipfs/js-ipfs/tree/master/docs/core-api)

## Usage

src/index.tsx
```js
import { IPFSProvider } from "react-ipfs"

....
LOADING>}>


...
```

src/App.tsx
```js
import { useIPFS } from "react-ipfs";

function App() {
const ipfs = useIPFS()

useEffect(()=>{
ipfs.id().then(console.log);
},[])

...
```
## Contribute

Please see the [contributing guidelines](./CONTRIBUTING.md)