DEV Community

Discussion on: Why the React community is missing the point about Web Components

Collapse
 
oenonono profile image
Junk • Edited

How does WASM have anything to do with whether or not it's useful to be able to extend HTML?

Do you still use the button element? h1? input? Web Components are just a way to let you create HTML elements for your own UI patterns.

As you quite accurately note, this is not the same thing as orchestrating an application. Nor is it the same thing as writing complex business logic services in WASM.

You still need accessible GUI components. The standardized set of them is still insufficient. That's where Web Components shine.

Collapse
 
progrium profile image
Jeff Lindsay • Edited

If I build a component framework in another language via WASM, I can't see a way to make those components play well in a Web Component ecosystem. That was the extent of the meaning behind my WASM statement.

Thread Thread
 
oenonono profile image
Junk

How do you make a UI accessible that doesn't ultimately render HTML semantics? If you can't build an accessible UI, why would you implement the UI with WASM?

Thread Thread
 
dan_abramov profile image
Dan Abramov

Note that iOS, Android, and other UI platforms are accessible without using HTML. While I'm not pushing for leaving the DOM, there is nothing in particular that ties accessibility to it — it's a matter of which low-level APIs are exposed and available.

Thread Thread
 
progrium profile image
Jeff Lindsay

because javascript tooling is That Bad? but in seriousness i don't really understand. 1) it would still render HTML, 2) most app UIs are not HTML.

Thread Thread
 
oenonono profile image
Junk

Weren't we talking about web UIs specifically? Are you using WASM to build native Android or iOS apps? What is going on in this conversation?

Thread Thread
 
progrium profile image
Jeff Lindsay

who cares any more