Skip to content

feat(react): create React hooks packaging layer (@bc-forge/react) - #32

Merged
p3ris0n merged 1 commit into
BCPathway:mainfrom
EDOHWARES:feat/react-hooks
Apr 24, 2026
Merged

feat(react): create React hooks packaging layer (@bc-forge/react)#32
p3ris0n merged 1 commit into
BCPathway:mainfrom
EDOHWARES:feat/react-hooks

Conversation

@EDOHWARES

Copy link
Copy Markdown
Contributor

Description

Introduces @bc-forge/react, a dedicated packaging layer designed to streamline dApp development. This package wraps the core SDK into native React primitives, managing client context and asynchronous loading states automatically.

Key Changes

  • bcForgeProvider: A React Context provider that initializes and distributes the SDK client.
  • Hooks Suite:
    • useBcForgeToken(): Fetches metadata (Name, Symbol, Decimals).
    • useBalance(address): Real-time balance tracking with manual refetch capability.
    • useMint(): Managed mutation hook for token issuance.
  • Standardized States: All hooks return a consistent { data, loading, error } pattern.

Acceptance Criteria

  • Structure separate /react framework wrapper workspace.
  • Output native hooks (useBcForgeToken, useBalance, useMint).
  • Return robust status properties for natural load-state handling.

Closes #24

@drips-wave

drips-wave Bot commented Apr 22, 2026

Copy link
Copy Markdown

@EDOHWARES Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@EDOHWARES

Copy link
Copy Markdown
Contributor Author

@p3ris0n , pls approve workflow so I confirm if it passes

@p3ris0n
p3ris0n merged commit 160fa13 into BCPathway:main Apr 24, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Tooling]: Create a React Hooks packaging layer (@bc-forge/react)

2 participants