React Installation
Installing the React component
React Installation Guide for Squid Widget
This guide will help you integrate the Squid Widget into your React application. For a complete working example, check out our full React example.
Prerequisites
Ensure you have completed the steps in the Installing the Widget guide before proceeding.
Basic Integration
After installing the npm package, follow these steps to add the widget to your React app:
Import the SquidWidget component:
Add the widget to your component:
Make sure to replace <your-integrator-id>
with the Integrator ID you received from Squid.
Customization
To customize the widget's appearance and behavior:
Use the Squid Widget Studio to generate a custom configuration.
Copy the generated config and paste it into your
config
prop.
For example:
Advanced Configuration
For more detailed configuration options, explore the Widget Studio.
Troubleshooting
If you encounter any issues:
Ensure you're using the latest version of the widget (^3.0.10).
Check that you've updated to Wagmi v2 and ethers v6 if your project uses these dependencies.
Review the Migration Guide if you're upgrading from an earlier version.
Last updated