-
I found all this could be done by I am not sure what optimization they have and when should I use them instead of raw conditional expresssions. |
Beta Was this translation helpful? Give feedback.
Answered by
ryansolid
Apr 6, 2021
Replies: 1 comment
-
Yeah added optimization for the ternary and boolean syntax so they are mostly the same now. You can do keyed modes (where it full replaces children) with the components by having callback children. Switch/Match is a bit cleaner when you have more than 2 outcomes. I do find in general since it avoids |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
zhaoyao91
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yeah added optimization for the ternary and boolean syntax so they are mostly the same now. You can do keyed modes (where it full replaces children) with the components by having callback children. Switch/Match is a bit cleaner when you have more than 2 outcomes. I do find in general since it avoids
{ }
it makes code cleaner, but that is a preference thing.