aesthetic-suite / framework

🎨 Aesthetic is an end-to-end multi-platform styling framework that offers a strict design system, robust atomic CSS-in-JS engine, a structural style sheet specification (SSS), a low-runtime solution, and much more!
https://aestheticsuite.dev
MIT License
203 stars 5 forks source link

HOCs break wrapped component generics #42

Closed milesj closed 4 years ago

milesj commented 5 years ago

When a component with generics is wrapped with an HOC, the generics are lost and any usage breaks that relied on them.

class Comp<T> extends React.Component {}

export default aesthetic.withStyles()(Comp);

Not sure if this is fixable?

milesj commented 4 years ago

Unable to fix. Just use hooks instead.