diff --git a/README.md b/README.md
index 81c10d18..22049513 100644
--- a/README.md
+++ b/README.md
@@ -87,28 +87,30 @@ class Counter extends owl.core.Component {
inlineTemplate = `
- Value:
+ Value:
`;
constructor(parent, props) {
super(parent, props);
this.state = {
- counter: props.initialState || 0
+ value: props.initialState || 0
};
}
increment(delta) {
- this.updateState({ counter: this.state.counter + delta });
+ this.updateState({ value: this.state.value + delta });
}
}
class App extends owl.core.Component {
inlineTemplate = `
-
-
+
+
`;
+
+ widgets = { Counter };
}
const env = {