good.html icon indicating copy to clipboard operation
good.html copied to clipboard

Try a new idea. Simplified, single files.

Open o0101 opened this issue 1 year ago • 0 comments

class Comonent extends Whatever {
  constructor(MyStuff) {
    // set up my stuff
    this.stuff = MyStuff
  }

  get myGuyState() {
    return this.stuff.guyState;
  }

  render() {
    this.shadow.innerHTML = `
      <style>
 
      </style>
      <h1 onclick=doStuff(event);>Some stuff</h1>
      <p>${MyStuff}</p>

      <my-other-guy state=myGuyState></my-other-guy>

      <script>
        function doStuff() {

        }
      </script>
    `;
  }

}

As in, how can we make it idiomatic and as simple as possible???

What about adding event handlers?

o0101 avatar Oct 25 '23 15:10 o0101