- Hands-On Design Patterns with React Native
- Mateusz Grzesiukiewicz
- 62字
- 2021-08-13 15:13:02
Why Mixins are anti-patterns
With a Mixin pattern, you mix in a certain behavior with your React components. You kind of inject a behavior for free, and you can reuse the same Mixin in different components. This all sounds great, but it isn't – and you will easily find articles on why. Here, I want to show you this anti-pattern by example.