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

Switch to useRef over useState. #56

Closed milesj closed 5 years ago

milesj commented 5 years ago

useState hook is async and causes re-renders. We don't really need that, we need sync with a single render.