Skip to content
This repository has been archived by the owner on Aug 18, 2022. It is now read-only.
/ juice-hooks Public archive

🪝 A React Hooks library for the Juicebox V2 protocol.

Notifications You must be signed in to change notification settings

jbx-protocol/juice-hooks

Repository files navigation


juice-hooks

🧃 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.

Overview

juice-hooks provides a selection of React Hooks to interact with the Juicebox V2 contracts.

Installation

npm install juice-hooks

Usage

// MyComponent.tsx
import { useProjectOwner, useProjectMetadataContent } from "juice-hooks";

export default function MyComponent() {
  const { data: owner } = useProjectOwner({ projectId: 2 });

  return <span>Owner: {owner}</span>;
}

About

🪝 A React Hooks library for the Juicebox V2 protocol.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published