Update 01_owl_components.rst

The keyword `this` is missing in the setup() definition.
This commit is contained in:
Serge Bayet
2023-07-19 14:30:15 +02:00
committed by GitHub
parent 5ee932e14b
commit b428405d75

View File

@@ -46,7 +46,7 @@ button.
static template = "my_module.Counter";
setup() {
state = useState({ value: 0 });
this.state = useState({ value: 0 });
}
increment() {