Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/shop3/react-ipfs
- Owner: shop3
- License: mit
- Created: 2022-05-19T12:30:52.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-02T23:26:18.000Z (almost 2 years ago)
- Last Synced: 2024-08-20T15:04:53.264Z (4 months ago)
- Topics: ipfs, react
- Language: TypeScript
- Size: 3.16 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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 installnpm run husky:install
```## Development
```bash
npm run develop
```