Due to the recent changes to the React courses, I went back to the Jammming project and converted all the class components to function components. The page renders alright, but the search bar does not work. Either it’s something I missed or there is an issue with the Spotify API, which was giving me some trouble before.
In SearchBar.js
, you would probably want the search
function to be called when the button is clicked.