Design Patterns · Middle · Question 24 of 75
Which patterns can you see in Redux?
- ✓Correct answer: Command (actions), Observer (subscribe), a fold (the reducer)
- 2Singleton, Bridge and Visitor in every slice
- 3Abstract Factory and Template Method for every reducer
Explanation
An action is an object describing an intent (like a Command), the store notifies subscribers (Observer), the reducer folds a stream of actions into state, and middleware forms a chain of responsibility. This helps explain where Redux's strengths and limitations come from.