react-ipfs
v0.4.4
Published
<div align="center">
Downloads
98
Maintainers
Readme
react-ipfs
React IPFS instance hooks for easier usage in your DAPPS
Ukraine is currently suffering from Russian aggression, please consider donating to one of these charities.
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