Last active
December 29, 2019 20:30
-
-
Save abhinavraj23/280bd0e2cebf225319e39c97bd9b52f6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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