Skip to content

feat: add react hooks package @stellar-sharpy/react #39

Description

@MarcusDavidG

Summary

A React hooks wrapper would let app developers integrate Sharpy with minimal boilerplate.

Proposed hooks

useInvoice(id) // fetches invoice, auto-refreshes
useCreateInvoice() // returns { create, loading, error }
useWallet() // publicKey, connect, disconnect
useInvoicesByCreator(creator) // paginated invoice list

Acceptance criteria

  • New package packages/react in the monorepo (or separate repo)
  • Hooks use SharpyClient internally
  • Published as @stellar-sharpy/react

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions