Skip to content

Improving for new and/or average users. #13

@limira

Description

@limira

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?

  1. Statically checking if a child (directly) is allowed in an element, an attribute is available for an element.
  2. Add the Component as discuss in Update examples to separate view and state update! #12, and have an example demonstrating it.
  3. Less mysterious macro, especially the clone! (at least document it).
  4. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions