This is more of a query than a request for help. In the Jammming project solution, it shows the SearchBar component creating its own state to hold the search term that the user enters.
Is this a common pattern? Because I thought the previous React lessons suggested only ever holding state in the parent component, i.e. in App.js.
Everything else so far in the project has involved setting and updating the state in App.js, so I was expecting the SearchBar to follow the same pattern - create a method in App.js to update the state there with the search term, and pass that method down as a prop.