Keep secret keys on your server. Client SDK integrations should use publishable keys only.
React Provider
Most React apps configure Fanfare once near the route or app area that renders the experience.FanfareProvider initializes the core SDK, restores local session state by default, and provides SDK access to components and hooks below it.
Common provider props:
See Configuration Reference for the full public option list.
ExperienceWidget
Configure the journey UI withExperienceWidget.
Use
onGranted when checkout needs a trusted handoff:
Copy And Theme
Use provider-levellocale and translations for shared copy. Use widget theme, variant, and slots for per-page customization.
Core SDK
Use the core SDK when your application owns every screen.sdk.destroy() when the application area that owns the SDK permanently unmounts.
Web Components
Register web components once before rendering custom elements.Environment Variables
Use framework-supported public environment variables for browser credentials.Development And Production
Use test credentials for development and live credentials for production.Next Steps
- Quickstart - Render the first experience.
- Testing - Test public journey states.
- Configuration Reference - Review the full public option list.