Finishing the Orchestrating Component
Explore the process of consolidating multiple UI functions into one generic React component that handles searching, sorting, and filtering. This lesson guides you through refactoring state management, applying render props, and optimizing data handling to build cleaner and more maintainable code.
We'll cover the following...
We'll cover the following...
Current implementation of the SearchSortAndFilter
Each component in SearchSortAndFilter is still rendering its own list using the data prop.
To remove the redundant data prop, we can revert back to the callback versions of SearchInput, Sorters, and Filters that we originally built. Then, at the bottom of our component, we’ll combine the array manipulation function calls to filter (for search), sort (for ...