control flow: how render html tag only when condition meet #3795
-
control flow: How to render html tag only when condition meet in many examples i just see but i want to render nothing, not rendering something like default value Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
mahdi739
Mar 28, 2025
Replies: 2 comments 2 replies
-
You can pass |
Beta Was this translation helpful? Give feedback.
0 replies
-
There is a whole section of the book on control flow here, which answers this among other questions. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
if condition {
Some(view!{...})
} else {
None
}