Widget
Widget
is a React component that can render all widgets, configured in Sitecore Search Customer Engagement Console (CEC).
All the content, styles, and configuration of content personalization widgets, like banner and HTML block widgets, can be accessed in the CEC. Widget
can easily render these widgets because it has all the necessary information.
Merchandising widgets require more than just data to render. The layout and styles are defined in widget components. To render them, Widget
needs to be provided with functional React components.
To instantiate a widget, associate a component with:
-
A widget type using the
setWidgetType
method. -
A widget type and a
rfkid
using thesetWidget
method.
Import path
import { Widget } from '@sitecore-search/react';