Last updated 2 years ago
Was this helpful?
The CustomComponent component is a wrapper for the from the @appbaseio/reactivesearch package, it allows for all advanced implementations to limit their imports to the Reactify Search package.
Further usage documentation is available .
import React from "react"; import { ReactifySearchProvider, CustomComponent } from "@usereactify/search"; export const ExampleCustomComponent: React.FC = () => { return ( <ReactifySearchProvider mode="search" shopifyPermanentDomain="reactify-apps.myshopify.com" additionalComponentIds={["SensorSpecialProduct"]} > <CustomComponent componentId="SensorSpecialProduct" customQuery={() => ({ query: { match: { product_type: "Special Product", }, }, })} /> </ReactifySearchProvider> ); }
type CustomComponentProps = React.ComponentProps< typeof ReactiveComponent >;