In Lit, most things start with defining a component. Here we've given you a starter project that has the required imports and nothing else.

You should see the greeting message in the Result pane.

Decorators.

The TypeScript version of this code uses the @customElement decorator to register your class with the browser as a new element. The JavaScript version uses customElements.define() to do the same thing. This is a matter of style. You can use decorators—or not use decorators—in either language. For more information, see Decorators.