preact-shadow-root icon indicating copy to clipboard operation
preact-shadow-root copied to clipboard

πŸ•΄ Render a Preact subtree into the Shadow DOM.

Results 4 preact-shadow-root issues
Sort by recently updated
recently updated
newest added

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...