For a complete working example, check out our full React example
repository
Why client side rendering?
Why client side rendering?
Wallet connection libraries (like wagmi, which the widget uses) interact
directly with browser APIs and wallet extensions. These functionalities are
only available in a client side (browser) environment. Attempting to render
them on the server during the build or request time would result in errors. By
explicitly marking components for client side rendering, we ensure
compatibility and a smooth user experience
Prerequisites
Before proceeding with React specific integration, ensure you have completed the general installation steps outlined in the General InstallationIntegration
Create aWidget.tsx
file in your components directory to encapsulate the GlueX widget
App.tsx
Configuration
The widget is highly configurable through itsconfig
prop. This allows you to tailor its behavior, default settings and connected services to match your application’s requirements. For a complete list of all available configuration options and their detailed descriptions, please refer to the widget configuration section
Customization
Beyond basic configuration, the widget offers extensive customization capabilities to ensure it seamlessly integrates with your application’s branding and design system. You can customize nearly every visual aspect of the widget. For a complete list of all available configuration, theme options, appearance and their detailed descriptions, please refer to the widget customization sectionCheck out GlueX’s Widget Studio to
customize and generate your custom widget configuration. It provides an
interactive interface to adjust settings and see real time previews, then
generates the corresponding config code snippet for you