Replies: 1 comment
-
Note that you want to listen to 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
-
Sorry if this feature already exists, haha. I can't find a simple way to set up a React-like controlled component. Take
select
for example. You can do something like<select value={value} onselectionchange={callback : Callback<Event>}>
, but I can't figure out howcallback
gets the new selection so it can changevalue
. In React, the callback would get the new selection, but I'm not sure what the equivalent pattern looks like in Yew. As far as I can tell, it's not possible, is that correct?Beta Was this translation helpful? Give feedback.
All reactions