Skip to content

Instantly share code, notes, and snippets.

@abhinavraj23
Last active December 29, 2019 20:30
Show Gist options
  • Save abhinavraj23/280bd0e2cebf225319e39c97bd9b52f6 to your computer and use it in GitHub Desktop.
Save abhinavraj23/280bd0e2cebf225319e39c97bd9b52f6 to your computer and use it in GitHub Desktop.
<DataSearch
title="DataSearch"
dataField={["original_title", "original_title.search"]}
onValueChange={value => {
console.log("value is: ", value);
// make the pop search REST API call here
// save the result in the state
// use that state inside the `render` prop for DataSearch to show the popular searches alongside the product search results.
}}
/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment