Skip to content

Instantly share code, notes, and snippets.

@reggi
Last active October 17, 2023 20:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reggi/25c8685d7d39a05da2dec753e72752d4 to your computer and use it in GitHub Desktop.
Save reggi/25c8685d7d39a05da2dec753e72752d4 to your computer and use it in GitHub Desktop.
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"name": {
"type": "string"
}
},
"required": ["name"]
}
class HelloWorld extends HTMLElement {
constructor() {
super();
this.textContent = `Hello ${this.getAttribute("name")}!`;
}
}
{
"name": "hello-world",
"isDefined": false,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment