From 750b40d1d68d9833c9414baa9f203ef7bc41b8c2 Mon Sep 17 00:00:00 2001 From: Christian Fritz Date: Thu, 4 Feb 2021 12:57:07 -0800 Subject: [PATCH] Fixed example on how to disable shadowRoot The boolean was reversed. --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 7b7eded..ca24adc 100644 --- a/README.md +++ b/README.md @@ -51,10 +51,9 @@ By default the `shadowRoot` is enabled. This allows for styles isolation and pre In case that you want your component to inherit styles from the parent you can opt-out of the shadowRoot. To do that you can pass an **optional** parameter to the `create` method: ```js -ReactWebComponent.create(, 'my-component', true); +ReactWebComponent.create(, 'my-component', false); ``` - It is also possible to create multiple web components in a single project and pass on props: ```javascript