Unit testable components pt.2: Redux and separation of concerns
Use global state management, like Redux Production size codebases are completely unmaintainable if local component state is exclusively used. Don't even try. React +16.3 introduced their own global state management system, the context api. But even then, I find it to be lacking base functionality. If you want those niceties, I don't think you should reinvent the wheel when redux is so functionality-rich with a huge open source community that backs it. I use the features you get from redux to keep my components virtually free of business logic. Opinion: Thunk is the only Redux middleware needed There is a lot of middleware out there, but I find redux-thunk to be more than adequate for my needs....