Thinking in Response is a great guide aimed at making you feel comfortable with the React state model. It explains how to create a table with filtering, but sorting can be done in a similar way. Redux is not used in this example, but the Redux implementation will be similar, except that reducers will be used to control the state instead of the top-level component.
To make filtering and sorting effective in Redux, it is usually combined with memoization. Computing Derived Data shows how you can use Reselect to create custom data selectors that can filter and sort it.
Regarding pagination, the real-world example in the Redux repository shows how to implement it. This requires a deeper understanding of topics such as state normalization, so do not jump into it too soon. But the main idea is to store the strings separately from the list of their identifiers and use a data structure, for example { ids: array, isFetching: bool, nextPageUrl: string? } { ids: array, isFetching: bool, nextPageUrl: string? } to represent the pagination status.
Dan abramov
source share