-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Passing properties to WebComponents #33
Comments
@ranaya-formant would you mind adding some context here, since it's actually unclear to me what this would entail exactly. One thing would be using Web Components internally for performance (which may or may not be needed, benchmarks pending), another would be the ability to define Web Components in Kobold to use them outside of Kobold. |
That was probably the OP's intention. There's some background on web components with bindgen rustwasm/wasm-bindgen#3119 |
@maciejhirsz sorry for the delay. What I mean is not being able to define web components, but rather being able to effectively pass down properties to a web component. Right now react currently suffers from only being able to pass data to components by attribute. lit-html and a planned improvement to React allow web components to receive data directly on properties exposed by the element ( to avoid the attribute string -> value conversion ). I think this change would allow kobold to utilize web components from the ecosystem that exists today, and if kobold ever allows creating of web components one day, it would have an efficient way to pass it props too. example: let a = 42;
view! {
<Greeter name="Richard" .age={a} />
} |
@ranaya-formant thanks for the explanation. This seems like a pretty modest ask and I don't see a reason why we shouldn't be able to do it one way or the other. I'll organize a roadmap till 1.0 next week and plan this in somewhere. |
No description provided.
The text was updated successfully, but these errors were encountered: