In order to let the users of LyricsFinder easily look for artists and songs, we will now create a search component.
Our specifications for this component are quite simple:
- Display a search input field, allowing users to type in the name of an artist or song they want to look for.
- Pressing Enter in the input field should automatically trigger an event containing the entered text.
- Include a search button, allowing users to trigger a search manually.
- Clicking on the search button should automatically trigger an event containing the entered text.
- Clearing the input field should automatically trigger an event. This event will later allow us to reset the artists and songs lists.
The search component will be a dumb component: it will emit events but will not know or care about what happens next. Actually, the home view will be responsible...