4 ms·
Racket has classes as first-class values. So a mixin is a function from one class to another. This seems similar to higher order components solution. https://d
by enugu 10y ago
Racket has classes as first-class values. So a mixin is a function from one class to another. This seems similar to higher order components solution. https://docs.racket-lang.org/guide/classes.html?q=mixin#%28tech._mixin%29 https://docs.racket-lang.org/guide/classes.html?q=mixin#%28t...
- danabramov 10y agoSimilar but the big difference is the wrapping component does not extend the wrapped component. It uses React component model for composition.