Client- or Server-side Search

Extending the search functionality to now search on the server side instead of client side.

We'll cover the following

Now, when you use the Search component with its input field, you will filter the list. That’s happening on the client-side, though. We want to use the Hacker News API to search on the server-side. Otherwise, you would only deal with the first API response you got on componentDidMount(), the default search term parameter.

You can define an onSearchSubmit() method in your App component, which fetches results from the Hacker News API when executing a search in the Search component.

Get hands-on with 1400+ tech skills courses.