-
Notifications
You must be signed in to change notification settings - Fork 22
Closed
Labels
performancepossible performance improvementspossible performance improvements
Description
Right now in next-yak, we use Proxy to provide the same API like styled components.
It lets devs write code like styled.div to style any html element tag or even custom elements.
Unfortunately according to https://romgrk.com/posts/optimizing-javascript proxies prevent compiler optimization and therefore might slow down our runtime during SSR and hydration.
As next-yak compiles the code anyway we can change the components from styled.div`... to styled("div", ...).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
performancepossible performance improvementspossible performance improvements