Use a [static block](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/Static_initialization_blocks) to define the web component, as [seen here](https://github.com/nichoth/reciprocate?tab=readme-ov-file#zero-boilerplate-). ```js export class SimpleGreeting extends BaseElement { static observedAttributes = ["whoa", "mood"] static { customElements.define("simple-greeting", this) } ```