React Hooks
Add state management and SDK interactions using Para’s React hooks
Overview
Para’s React hooks provide an intuitive way to manage wallet state, handle transactions, and interact with the Para SDK. This guide assumes you’ve already set up the Para Modal in your application following one of our framework integration guides.
Setting Up the Provider
To use Para’s React hooks, wrap your application with ParaProvider
. This provider gives your components access to
Para’s hooks and state management.
Provider Configuration
Using the Hooks
Here’s an example component using Para’s React hooks to handle wallet connection and message signing:
Available Hooks
Query Hooks
State management hooks built on React Query:
Mutation Hooks
Hooks for performing actions and state changes:
Utility Hooks
Advanced Usage
Using Para with EVM Providers
The ParaProvider
can work with our External Wallet Connectors to provide wallet connection. An example using our Para
EVM Provider is shown below:
For more details on using external wallet connectors visit any of the external wallet integration guides:
Next Steps
Now that you understand Para’s React hooks, you can:
- Implement wallet connection flows
- Add transaction signing
- Handle user authentication
- Manage wallet state across your app