I followed this tutorial for Autocomplete function, code here. It is working fine, but I would like to access the result of the suggestion in the App.js so I could use the result for search or any other feature. Any idea how to do this? Thank you.
Advertisement
Answer
Looks like you need to pass down a function as a prop, so that you can pass the value to that function and use it in the parent. I modified your example if you want to try it out in this sandbox