Because React is good enough. I think that's mostly why. Here's legacy React's like_button.js, without JSX, from their old documentation: 'use strict'; const e = React.createElement; class LikeButton extends React.Component { constructor(props) { super(props); this.state = { liked: false }; } render() { if (this.state.liked) { return 'You liked this.'; } return e( 'button', { onClick: () => this.setState({ liked: tru…
I don’t think the Web Components API was meant to be used directly all the time. You can use a framework like StencilJS:
When you consider the 100KB of bulk the React example brings with it the web component example is actually pretty impressive.