Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

React ipfs provider
https://github.com/shop3/react-ipfs

ipfs react

Last synced: 10 days ago
JSON representation

React ipfs provider

Awesome Lists containing this project

README

        

# React IPFS Provider

IPFS provider for a react application.

## Installation

```bash
npm install --save @shop3/react-ipfs
```

## Usage

```js
import React, { useEffect } from 'react';
import { IPFSProvider, useIPFS } from '@shop3/react-ipfs';

const App = () => {
return (

{/* app here */}

)
}

const Example = () => {
const ipfs = useIPFS();

useEffect(() => {
if (ipfs) {
// use ipfs here
}
}, [ipfs]);
}
```

# Development

## Installation

```bash
npm install

npm run husky:install
```

## Development

```bash
npm run develop
```