News for hackers. Stuff that matters.
Re:Ask HN: Is 2022 the year of web components? [front end we... by travisd on Friday December 31, 2021 @04:44PM (#29752843)
I don't actively follow web components, but as someone who follows the React space reasonably well, I don't get any sense that things are shifting towards web components (at least in the sense of replacing React). React's docs[1] argue that they solve different problems (obviously that's potentially biased, but I still find it reasonably compelling). I think the most likely outcome is that some things will be shipped as web component libraries that can be easily consumed within various frameworks (e.g., I could envision Stripe shipping a webcomponent library instead of a React specific library).

[1] https://reactjs.org/docs/web-components.html

Re:Ask HN: Is 2022 the year of web components? [front end we... by Andrej996 on Tuesday January 04, 2022 @09:12PM (#29804085)
Web Components will not replace frameworks, but enhance them. It doesn't matter which framework you use (current ones like Angular, React or Vue) or some future framework, web components work in ALL of them. They are currently supported by all modern browsers, and about IE11 its time to let go of that one.
Re:Ask HN: Is 2022 the year of web components? [front end we... by okareaman on Friday December 31, 2021 @05:26PM (#29753138)
This makes sense. I really like the idea of non-framework specific components so that's the route I'll take. I'm happy that option is growing in viability. Thanks.