4 ms·
It is a general problem (that is, not only Redux has it, but basically any React-based thing), and the pattern that works best for reusability (in my esperience
by ff_ 8y ago
It is a general problem (that is, not only Redux has it, but basically any React-based thing), and the pattern that works best for reusability (in my esperience) is the "pure component sandwich": you have a pure component which takes a bunch of functions as parameters (and is reusable, no framework-specific stuff) and wrap it in the app-specific component which implements these functions for the current app.
- daveidol 8y agoDefinitely agree, but I think the parent commenter was asking how to reuse redux-specific code, such as reducers, actions, etc.