So lots of hot takes going around about web components. I love em, but I understand the frustrations. Here's my take on the single thing that makes Web Components distinct, for better or worse. jschof.dev/posts/2024/1...
Post
jschof.devThe Differentiating Property of Web Components - Jschof.devThere's been a lot of discussion on whether web components are good or not. But there is one property of web components that might make them the best or the worst solution for your needs.
Web components can easily be aware of parents and children. You can fire events to communicate upwards, and you can use events to register children for downward data flow, like the Context community protocol github.com/webcomponent...
github.comgithub.com
I think the thing is that there are ways to share state, but it's just different when you're doing it through DOM apis and events. The average front ender is not used to this because of frameworks.
0 reposts0 likes
No replies yet.