Skip to main content

React Hooks

React-specific hooks for seamless usmewe integration.

Installation

Setup

Wrap your app with the UsmeweProvider:

Authentication

useUsmeweAuth

Manage authentication state:

User Hooks

useUser

Get current user data:

useTrustScore

Get Trust Score with breakdown:

Loan Hooks

useLoanEligibility

Check loan eligibility:

useLoans

List and manage loans:

useLoan

Get single loan details:

Vault Hooks

useVault

Manage Trust Vault position:

Social Vault Hooks

useSocialVault

Manage Social Vault:

useGuardians

Manage guardians:

Notification Hooks

useNotifications

Manage notifications:

Optimistic Updates

Hooks support optimistic updates for instant feedback:

Error Handling

TypeScript

All hooks are fully typed:

JavaScript SDK

Core SDK documentation

API Reference

Full API documentation