Re:Use web components for what they’re good at
by benatkin on Wednesday August 23, 2023 @11:58PM
(#37244861)
For starters, see the GitHub blog posts. https://github.blog/2021-05-04-how-we-use-web-components-at-... https://github.blog/2022-12-13-creating-an-accessible-search... https://github.blog/2018-09-06-removing-jquery-from-github-f...
> straight JS with no libs or Svelte
Web Components is starting to fit under this.
Re:Use web components for what they’re good at
by troupo on Thursday August 24, 2023 @01:29AM
(#37245362)
> Web Components is starting to fit under this.
Nope. Vanishingly few people write web components without libs like lit or Stencil.
Re:Use web components for what they’re good at
by benatkin on Thursday August 24, 2023 @02:29AM
(#37245690)
GitHub is one:
https://github.com/github/details-dialog-element
There should be others here:
https://github.com/web-padawan/awesome-web-components#compon...
Re:Use web components for what they’re good at
by troupo on Thursday August 24, 2023 @04:46AM
(#37246479)
You can find those lists for any tech, including Brainfuck and Malboge.
But then some time passes, and they end up implementing things like new search and code view in React: https://github.blog/2023-06-21-crafting-a-better-faster-code... :)
Even the most loud voices in the web component space almost exclusively advocate lit and stencil for development.
Hence "vanishingly few"
Re:Use web components for what they’re good at
by scns on Thursday August 24, 2023 @07:33AM
(#37247639)
> I literally can’t remember the last time I saw a mention of web components online, let alone an article about them.
My anecdata differs. There were several articles about them on HN in the last 6 weeks.
I literally can’t remember the last time I saw a mention of web components online, let alone an article about them.
Which is one of the reasons I was so interested to read this one.