3 ms·
> Container/Component That's not part of Redux, it's a separate design pattern you can use with any Flux architecture. React-Redux doesn't even require you to
by ng12 9y ago
> Container/Component
That's not part of Redux, it's a separate design pattern you can use with any Flux architecture. React-Redux doesn't even require you to do it that way, and for good reason: you might not need it. There's nothing wrong with just importing a store reference wherever you want it. That's a totally reasonable pattern for some applications.
This illustrates my point I guess. There's so many people thinking about how to architect and implement React applications that there's a lot of cargo-culting.
- conradfr 9y agoThat's not part of Redux, maybe, but it's very prominent in the official tutorial in the basic section : https://redux.js.org/docs/basics/UsageWithReact.html https://redux.js.org/docs/basics/UsageWithReact.html