From 7bd4d7ca79874ea0dafc943f198222ca8bcaacf1 Mon Sep 17 00:00:00 2001 From: Thomas von Deyen Date: Fri, 6 Nov 2020 15:34:21 +0100 Subject: [PATCH] Rename elementType() into componentName() The element attribute used is called name and not type, also in Vue components have a name attribute. --- README.md | 4 ++-- src/mixins/__tests__/page.spec.js | 4 ++-- src/mixins/page.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 0aab641..14f6d98 100644 --- a/README.md +++ b/README.md @@ -23,13 +23,13 @@ export default { } ``` -You now have acces to the `page` prop and its `elements`. Also you have access to the `elementType()` method that you can use to dynamically render element components. +You now have acces to the `page` prop and its `elements`. Also you have access to the `componentName()` method that you can use to dynamically render element components. ```html