Widget
Widget is a React component that can render all widgets, configured in Sitecore Discover 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
setWidgetTypemethod. -
A widget type and a
rfkidusing thesetWidgetmethod.
Import path
import { Widget } from '@sitecore-discover/react';