Can tailwind in leptos can compile this code or not ? #2430
-
Can tailwind in the leptos compiler can build this code, because de class is incomplete ? |
Beta Was this translation helpful? Give feedback.
Answered by
dglsparsons
Mar 14, 2024
Replies: 1 comment 1 reply
-
Tailwind in JS recommends against doing this, as the classnames are incomplete. I don't think there is any reason it would be different in Rust. Realistically, you can't know what classnames are needed ahead of runtime with code written in that manner. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ALEZ-DEV
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tailwind in JS recommends against doing this, as the classnames are incomplete.
source.
I don't think there is any reason it would be different in Rust. Realistically, you can't know what classnames are needed ahead of runtime with code written in that manner.