Implementing the Issues Feature: Server-Side Filter

Here we briefly explain how to implement server-side filtering.

We'll cover the following

Before starting with the server-side filtering, let’s recap the last lesson in case you had difficulties with it. Basically, you can perform the refactoring in three steps. First, we need the following package: recompose which is already installed in our environment.

Secondly, import the withState higher-order component in the src/Issue/IssueList/index.js file and use it to wrap our exported Issues component, where the first argument is the property name in the local state, the second argument is the handler to change the property in the local state, and the third argument is the initial state for that property.

Get hands-on with 1200+ tech skills courses.