react-ipfs
TypeScript icon, indicating that this package has built-in type declarations

0.4.4 • Public • Published

react-ipfs

React IPFS instance hooks for easier usage in your DAPPS

npm David GitHub package.json dependency version (prod) GitHub top language NPM Matrix

Ukraine is currently suffering from Russian aggression, please consider donating to one of these charities.

drawing

Installation

npm

npm install react-ipfs

yarn

yarn add react-ipfs

Documentation

IPFS core documentation is here

Usage

src/index.tsx

import { IPFSProvider } from "react-ipfs"

....
    <IPFSProvider fallback={<>LOADING</>}>
      <App />
    </IPFSProvider>
...

src/App.tsx

import { useIPFS } from "react-ipfs";

function App() {
  const ipfs = useIPFS()

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

...

Contribute

Please see the contributing guidelines

Package Sidebar

Install

npm i react-ipfs

Weekly Downloads

5

Version

0.4.4

License

MIT

Unpacked Size

175 kB

Total Files

12

Last publish

Collaborators

  • youaresoroman