feat(site): update content
This commit is contained in:
parent
3e8334f2c1
commit
c9dd590931
2 changed files with 4 additions and 3 deletions
|
@ -29,7 +29,7 @@
|
|||
<p>
|
||||
By extending our base class, you get an easy authoring experience as you would expect in writing your components:</p>
|
||||
<ul>
|
||||
<li>A signals-like <code-block inline>props</code-block> API that synchronizes your components' property values and UI</li>
|
||||
<li>A <code-block inline>props</code-block> API that synchronizes your components' property values and HTML attributes</li>
|
||||
<li>Sensible life-cycle hooks that you understand and remember</li>
|
||||
<li>Extensible templates & renderer (examples in-progress)</li>
|
||||
<li>Provided out-of-the-box with <a href="https://ayco.io/gh/McFly">McFly</a>, a powerful no-framework framework</li>
|
||||
|
|
|
@ -5,10 +5,11 @@ export class Counter extends WebComponent {
|
|||
static properties = ["count"];
|
||||
onInit() {
|
||||
this.props.count = 1;
|
||||
let i = 1
|
||||
this.onclick = ()=> ++this.props.count
|
||||
let double = () => this.props.count * 2;
|
||||
let double = () => i * 2;
|
||||
console.log(double());
|
||||
this.props.count = 3;
|
||||
i = 3;
|
||||
console.log(double());
|
||||
}
|
||||
get template() {
|
||||
|
|
Loading…
Reference in a new issue