If it looks stupid but works, it ain’t stupid. If you haven’t read about render props before, check out: Use a Render Prop!
Render Props are a powerful way to compose state in React.cdb.reacttraining.com Problem You have a lot of sorting presets (Chronological, reverse-chronological, alphabetical, et al). For performance reasons, you want to store the filtered array into your state instead of doing the filtering inside…