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

Replace HOC classes with FCs + hooks #55

Closed milesj closed 5 years ago

milesj commented 5 years ago

HOCs suck, especially because of the many layers of context nesting. This PR is a proof of concept on replacing the internal HOC classes with functions + hooks to achieve the same effect.

And since we're not using classes anymore, we can remove the pure option.

The added bonus to this is that we no longer need to dive within Enzyme.