Redux - Part 2

profile photo
Julien Vinckel
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.
10 Tips for Better Redux Architecture
use state selector
export const getViewState = state => state;
javascript
export const getViewState = state => Object.assign({}, state, { // return a list of users active during this session recentlyActiveUsers: [...new Set(state.chatLog.map(chat => chat.user))] });
Related posts
post image
Functional programming
Start thinking declaratively
Why move from imperative to declarative code
post image
Summing up Eric Eliott composing software
post image
Creating a new query language specialized in event processing
Powered by Notaku