News for hackers. Stuff that matters.
Re:React: Mixins Considered Harmful by danabramov on Thursday July 14, 2016 @08:37AM (#12093189)
When people say “composition” they refer to different things. You are referring to object composition.

In React, “composition” means has a very specific meaning: it’s putting components into components. It has very little to do with object composition because in React component instances almost never “talk” to each other. They don’t call methods on each other.

React component model is much closer to functional composition which doesn’t suffer from the drawbacks you describe.

There are no comments on this comment yet.