Skip to content

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

Description

@crisdosaygo
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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions