Replies: 2 comments
-
For that case, it seems you can use EventHandler as a props type as https://dioxuslabs.com/learn/0.5/reference/event_handlers. Also, you could use Callback. |
Beta Was this translation helpful? Give feedback.
0 replies
-
just provide a regular rusty function type definition like so: #[component]
fn UserSelect(
onselect: fn(&str) -> bool,
) -> Element { Here the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How to pass function into component? It is possible?
?
Beta Was this translation helpful? Give feedback.
All reactions