preact-shadow-root
preact-shadow-root copied to clipboard
π΄ Render a Preact subtree into the Shadow DOM.
Checking in to see if this library is still needed/recommended, since I see some references to the shadow DOM on the main docs: https://preactjs.com/guide/v10/web-components/#passing-slots-as-props
- `this.base` is `undefined` at `componentDidMount`, so `this.shadow` never gets initialized. - `props.children[0]` is `undefined`, since `children` isnβt always an array anymore. - The third argument to `render()` should be...
Doesn't work for me. Failed with this error: ``` preact-shadow-root.es.js:17 Uncaught (in promise) TypeError: Cannot read property 'firstChild' of undefined at o.update (preact-shadow-root.es.js:17) at o.shouldComponentUpdate (preact-shadow-root.es.js:8) at A (index.js?c988:113) at...
Fixes #6.