From 1ae5fa7535db73f6ffbe977e7a379165875f5e39 Mon Sep 17 00:00:00 2001 From: Ayo Date: Thu, 7 Dec 2023 18:31:57 +0100 Subject: [PATCH] chore: update readme; props can now hold object --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 24e3ec9..64b0ddd 100644 --- a/README.md +++ b/README.md @@ -137,7 +137,7 @@ Therefore, this will tell the browser that the UI needs a render if the attribut > [!NOTE] > The `props` property of `WebComponent` works like `HTMLElement.dataset`, except `dataset` is only for attributes prefixed with `data-`. A camelCase counterpart using `props` will give read/write access to any attribute, with or without the `data-` prefix. -> Another advantage over `HTMLElement.dataset` is that `WebComponent.props` can hold primitive types `number`, `boolean`, and `string`. +> Another advantage over `HTMLElement.dataset` is that `WebComponent.props` can hold primitive types 'number', 'boolean', 'object' and 'string'. ### Alternatives