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
For boolean attributes such as hidden or checked, it would be handy to be able to control the presence or absence via a boolean expression.
One way to do this is what Yew does: require a boolean value in the template! (as is required today) but include the attribute if-and-only-if the value is true.
For boolean attributes such as
hidden
orchecked
, it would be handy to be able to control the presence or absence via a boolean expression.One way to do this is what Yew does: require a boolean value in the
template!
(as is required today) but include the attribute if-and-only-if the value is true.As an example, this would shrink code like this:
down to this:
The text was updated successfully, but these errors were encountered: