🧃 A React Hooks library for the Juicebox V2 protocol.
Built on juice-sdk.
⚠️ This library is experimental and we provide no guarantees. Use at your own risk.
juice-hooks provides a selection of React Hooks to interact with the Juicebox V2 contracts.
npm install juice-hooks// MyComponent.tsx
import { useProjectOwner, useProjectMetadataContent } from "juice-hooks";
export default function MyComponent() {
const { data: owner } = useProjectOwner({ projectId: 2 });
return <span>Owner: {owner}</span>;
}