by naman34 · 2y ago · 0 comments
We're continuing to work on optimisations for StyleX, and I'll be looking at Tamagui for inspiration!
"Since StyleX depends on ahead-of-time compilation, it is important for all your styles to be statically analyzable"
"No runtime style injection."
"All styles are bundled in a static CSS file at compile-time."
---
By dynamic styles I assume we're talking about something like this:
{ backgroundColor: props.thirdPartyColor ?? randomColor() }