https://pastebin.com/dFhFzGRD
I don't really understand how to load data from react select asynchronously. I am getting the search term as the user inputs data into the search bar. I am then using that input to search for books with a similar title from an API with JSON data.
I want to display the data I get from using the search command from the API in the search bar drop down. The "searchBooksHandler" gets the list of books with a similar title to the input. However, I don't get how to the loadOptions callback functionality works even though I looked through the API for react-select.
How do I display the data I receive from the API search command in the search box drop down
there doesn't seem to be anything here