4 ms·
>"with no "Batteries included" and feel like they don't really help you build web _apps_ like the frameworks do." Define _app_. React doesn't have batteries, i
by reactordev 3y ago
>"with no "Batteries included" and feel like they don't really help you build web _apps_ like the frameworks do."
Define _app_. React doesn't have batteries, it has composability. Web Components do too but you have to know how (it's a lot easier in React, just return (html)) but in Web Components, you can register your custom element and provide the functionality that you call "batteries". [1] So if you don't care about attributes and just want semantic composable things, just call it whatever you want to. <user-avatar></user-avatar>. Conceptually it's a web component that extends HTMLDivElement.
[1] https://developer.mozilla.org/en-US/docs/Web/API/Web_components/Using_custom_elements https://developer.mozilla.org/en-US/docs/Web/API/Web_compone...