Compare commits

...

1 Commits

Author SHA1 Message Date
nrja-odoo
9e87e2c2ea Update 01_owl_components.rst
Template code throws a ReferenceError: state is not defined.
2023-07-31 10:25:43 -04:00

View File

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