McFly: Back to the Basics. Into the Future.
{{ project.name }}
{{ project.description }}
Welcome to {{ project.name }}
Server date time: {{new Date().toLocaleString()}}
Here's an interactive custom element:
class MyHelloWorld extends WebComponent { static props = { myName: "World", count: 0 } updateLabel() { this.props.myName = `Clicked ${++this.props.count}x`; } get template() { return html` <button onClick=${() => this.updateLabel()} style="cursor:pointer"> Hello ${this.props.myName}! </button>`; } }
Learn how to build components easily at
WebComponent.io