DEV Community

Discussion on: Create Reusable Web Components in HTML

Collapse
 
tufik2 profile image
Tufik Chediak Sanchez • Edited

I invite you to checkout this small component class that give reactive functionality to the standard implementation based in state (avoild re-render all component and only update the specific node when is required).

npmjs.com/package/cuppa-component

Advantages.

  1. Performance, use realDOM instead virtualDOM, also is vanilla javascript and starndar code.
  2. You can create your component library and re-use that after in any framework (react, angular, svelte, etc) due is pure javascript, no dependencies.
  3. No needed transpile code or make any configuration.
  4. Sizing.