3 ms·
> they're specific to React and have nothing to do with programming in general. I can't think of a single design pattern used in React that isn't a highly comm
by jhall1468 10y ago
> they're specific to React and have nothing to do with programming in general.
I can't think of a single design pattern used in React that isn't a highly common design pattern in any number of languages.
HOC's are just a React implementation of Higher-order Functions.
> I wouldn't go so far as to say, never use mixins in JavaScript, for example.
Neither did they...
This doesn’t mean that mixins themselves are bad. People successfully employ them in different languages and paradigms, including some functional languages... Nevertheless, we think that mixins are unnecessary and problematic in React codebases.