High order functions
To make integration easy for developers, Sitecore Discover includes ready-to-use high order functions in the JS SDK for React.
Use the following high order components:
widget- to configure UI components into a widget component.setWidget- to create a widget component to match its CEC configuration.setWidgetType- to create a generic widget component of a particular type.withPageWidget- to render widgets based on host page URL.
If you have suggestions for improving this article, let us know!