REACT Best Practices Organizing functions - AndelaOSP/Andela-Socials GitHub Wiki
Use Accessor Functions
For better code refactoring move all your functions which do filtering, parsing and other data transformation logics into seperate file and import them to use those functions inside your connect method of react-redux as shown.
By doing this, it will be easy to add flow types for your functions.