High order functions
To make integration easy for developers, Sitecore Search includes ready-to-use high order functions in the JS SDK for React.
Use the following high order functions:
-
widget- to configure UI components into a widget component. -
setWidget- to create a widget component to match its Customer Engagement Console (CEC) configuration. -
setWidgetType- to create a generic widget component of a particular type.