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