You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Right now in
next-yak
, we useProxy
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 fromstyled.div`...
tostyled("div", ...)
.The text was updated successfully, but these errors were encountered: