4 ms·
My preference in web dev is to lean into standards. Web components give us a way to structure and re-use dynamic (client side) rendering and event handling. Ho
by dgb23 3y ago
My preference in web dev is to lean into standards. Web components give us a way to structure and re-use dynamic (client side) rendering and event handling.
However two things are bad about them:
1. They break the otherwise consistent dynamism of JS. You can’t re-register custom elements. This is incredibly disappointing.
2. The shadow dom is a separate concept lumped together with the rest, which is painful. A typical case of people anticipating specific usage instead of making a modular, simple design.