10 Tips for Better Redux Architecture
When I started using React, there was no Redux. There was only the Flux architecture, and about a dozen competing implementations of it. Now there are two clear winners for data management in React: Redux and MobX, and the latter isn't even a Flux implementation.
https://medium.com/javascript-scene/10-tips-for-better-redux-architecture-69250425af44

use state selector
export const getViewState = state => state;
javascriptexport const getViewState = state => Object.assign({}, state, { // return a list of users active during this session recentlyActiveUsers: [...new Set(state.chatLog.map(chat => chat.user))] });