[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"/>]
</button>`;
constructor(parent, props) {
super(parent, props);
this.state = { value: 0 };
}
state = { value: 0 };
increment() {
this.state.value++;