Request results through the search api and provide them to a child function.
see SearchResultApiProps.
<SearchResultApi> {({ loading, error, value }) => ( <List> {value?.map(({ document }) => ( <DefaultSearchResultListItem key={document.location} result={document} /> ))} </List> )}</SearchResultApi> Copy
<SearchResultApi> {({ loading, error, value }) => ( <List> {value?.map(({ document }) => ( <DefaultSearchResultListItem key={document.location} result={document} /> ))} </List> )}</SearchResultApi>
Request results through the search api and provide them to a child function.