[DOC] readme: improve example

This commit is contained in:
Géry Debongnie
2019-04-24 10:32:17 +02:00
parent 94b48cb389
commit 4c2115d365
+1 -4
View File
@@ -27,10 +27,7 @@ class ClickCounter extends owl.Component {
Click Me! [<t t-esc="state.value"/>] Click Me! [<t t-esc="state.value"/>]
</button>`; </button>`;
constructor(parent, props) { state = { value: 0 };
super(parent, props);
this.state = { value: 0 };
}
increment() { increment() {
this.state.value++; this.state.value++;