o0101 / good.html

💎 Good.HTML. A nice framework without the bad stuff. Lots of custom elements, and nice templates. Good. HTML
https://o0101.github.io/good.html/
MIT License
21 stars 2 forks source link

Try a new idea. Simplified, single files. #63

Open o0101 opened 1 year ago

o0101 commented 1 year ago
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?