From ccd3d9ed1898c4767ebc75033874e5343e13e371 Mon Sep 17 00:00:00 2001 From: Ayo Date: Sun, 17 Sep 2023 13:40:48 +0200 Subject: [PATCH] chore: update onChanges example --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 329a8f3..ae8cb27 100644 --- a/README.md +++ b/README.md @@ -152,8 +152,9 @@ import WebComponent from "https://unpkg.com/web-component-base"; class ClickableText extends WebComponent { // gets called when an attribute value changes - onChanges({attr, prev, curr}) { - console.log('>>> something changed', {attr, prev, curr}) + onChanges(changes) { + const {property, previousValue, currentValue} = changes; + console.log('>>> ', {property, previousValue, currentValue}) } get template() {