In-App Wallets with Custom UI - React
v4 SDK
You have full control with the connection hooks and functions to build your own UI. To use in-app wallets, you first choose a authentication strategy and then connect.
View a fully functioning example of an in-app wallet with a custom UI:
Only needed for React and React native platforms
This will ensure that the wallet is available to all components in your app, handle connection states and auto-connection on page load.
Note that for Apple and Facebook, you just need to update the strategy to "facebook" or "apple".
In React and React Native, the useConnect()
hook handles authentication and connection states.