Sigh, what AI supported Web Component development will look like

Danny Engelman - Dec 8 '22 - - Dev Community

Update: I wrote a GPT that generates Web Components in seconds:



constructor(){
  const template = name => document.getElementById(name).content.cloneNode(true);
  super()
    .attachShadow({mode:"open"})
    .append(
        template("BOARDSTYLE"),
        template("GAMEBOARD")
     );
}
Enter fullscreen mode Exit fullscreen mode

is perfectly valid code!

But because 10 years of Web Component blogs have replicated statements like:

Our AI generated Web Components will be as stupid.

Source: https://chat.openai.com/chat

And its stuborn in its answers:




. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player