diff --git a/readme.md b/readme.md index bfa2282..1903a00 100644 --- a/readme.md +++ b/readme.md @@ -38,21 +38,22 @@ Since Leaf UI is modelled after React, everything is a component. You can create ```php count = $this->count + 1; + $this->count++; } public function decrement() { - $this->count = $this->count - 1; + $this->count--; } public function render() @@ -63,7 +64,7 @@ class Test2 extends Component