🎨 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!
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.
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.