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
@kellytk thanks for the feature request. I think maybe we just need better documentation around this.
I think if you want reusable fragments, you can use two different patterns:
Create a new Component
In your example, you would create a reusable Button component
Create a generic function
In your example, you would write view_button<C>(label: String) -> Html<C>
In your example code, you still would probably want a way to attach a listener to the button. That's why we need generics. Otherwise we can't type check that the listener callback can be handled.
Description
I'm submitting a ...
I would like to be able to generate HTML fragments with anonymous functions.
The text was updated successfully, but these errors were encountered: