-
Notifications
You must be signed in to change notification settings - Fork 66
Description
I am still not sure if I use this library or mine. But I think it worth raising this issue. How do you think about these?
- Statically checking if a child (directly) is allowed in an element, an attribute is available for an element.
- Add the Component as discuss in Update examples to separate view and state update! #12, and have an example demonstrating it.
- Less mysterious macro, especially the
clone!(at least document it). - Able to build directly with wasm-bindgen-cli or wasm-pack?
Personally, the first thing I do is looking at the examples. And my impression is: "Oh, what the hell is all this?" - totally new to signals; able to figure out about html!, but what does clone! do? when to use it? Looking for the document - no explanation for it. Look at the definition code? Uh oh, I am not good at it. I guess if users not desperately need this, they will move along.
(1) requires much more work, but give less obvious impact, but benefit in long term. Users may get frustrated if they accidentally assign an invalid attribute to an element. Because we are in Rust, we can help them avoid such situation. Especially for users who don't like to use the macro, IDEs can help showing available methods for an element.