Skip to content

Latest commit

 

History

History
26 lines (15 loc) · 735 Bytes

search-ui-react.analyticsprovider.md

File metadata and controls

26 lines (15 loc) · 735 Bytes

Home > @yext/search-ui-react > AnalyticsProvider

AnalyticsProvider() function

A higher-order component which provides analytics for its children.

Signature:

export declare function AnalyticsProvider(props: PropsWithChildren<AnalyticsConfig>): JSX.Element;

Parameters

Parameter Type Description
props PropsWithChildren<AnalyticsConfig> The configuration for the analytics service

Returns:

JSX.Element

A React element that provides analytics context