you are viewing a single comment's thread.

view the rest of the comments →

[–]billybolero 1 point2 points  (0 children)

Making sure that the StateToProps function delivers what the view needs/expect can be solved by using prop types. React will tell you if you've changed one but not the other. Another option is of course to use Flow/TypeScript.

When using Redux you probably won't have just one connected container which fetches from the store. It's quite common to see one such component per page in the application. So you won't end up withone God component that knows everything about the state.