5 ms·
12 years I’ve been saying this… 12, damn, years. React graduates look at me crazy. Angular devs say it’s not needed anyway. Svelte bros say get bent. I’m so hap
by reactordev 1y ago
12 years I’ve been saying this… 12, damn, years. React graduates look at me crazy. Angular devs say it’s not needed anyway. Svelte bros say get bent. I’m so happy that someone is paying attention.
You don’t need a shadow dom, you don’t need rerendering of everything when a simple value changes. You simply need web components and scoped js/ts with vite or whatever rollup you use.
- JoeyJoJoJr 1y agoCan you point to any example projects or a todo list app that shows how modern web component can be utilized.
- bmare 1y agoHere's a great one: https://plainvanillaweb.com/pages/components.html https://plainvanillaweb.com/pages/components.html
- reactordev 1y agoSure class App extends HTMLDivElement {} customElements.define(“main-app”, App) <body><main-app/></body> This is the simplest web component. More examples: https://github.com/mdn/web-components-examples https://github.com/mdn/web-components-examples