BannerWidget
BannerWidget
is a React component that renders a banner widget, configured in Sitecore Search Customer Engagement Console (CEC).
Import path
RequestResponse
import { BannerWidget } from '@sitecore-discover/react';
Example
RequestResponse
import { WidgetsProvider, BannerWidget } from "@sitecore-discover/react";
const MyApp = () => {
return (
<WidgetsProvider
env='<environment>'
customerKey='<customer key>'
apiKey='<api key>'
>
<BannerWidget rfkId="<rfkid_banner>" />
</WidgetsProvider>
)
};