GitShow/developit/preact-shadow-root
developit

preact-shadow-root

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

by developit
preactpreact-componentsshadow-dom
Star on GitHubForkWebsitenpm

JavaScript

73 stars6 forks1 contributorQuiet Β· 6y agoSince 20181.0.2

Meet the team

See all 1 on GitHub β†’
developit
developit6 contributions

Languages

View on GitHub β†’
JavaScript100%

Commit activity

Last 12 weeks Β· 0 commits

Full graph β†’

Community health

1 of 6 standards met

Community profile β†’
28
βœ“READMEβ—‹Licenseβ—‹Contributingβ—‹Code of Conductβ—‹Issue Templateβ—‹PR Template

Recent PRs & issues

Quiet Β· 1 in progress Β· Last activity 6y ago
See all on GitHub β†’
alexkrolick
Is this still the recommended way to work with the Shadow DOM in Preact?OpenIssue

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

alexkrolick Β· 4y ago
lydell
Support Preact XOpenIssue

is at , so never gets initialized. is , since isn’t always an array anymore. The third argument to should be removed, as per the Preact X upgrade docs. I run the following replacements on my bundle as a workaround:

lydell Β· 5y ago
avdeev
Uncaught (in promise) TypeError: Cannot read property 'firstChild' of undefinedOpenIssue

Doesn't work for me. Failed with this error:

avdeev Β· 5y ago
Structured data for AI agents

Repository: developit/preact-shadow-root. Description: πŸ•΄ Render a Preact subtree into the Shadow DOM. Stars: 73, Forks: 6. Primary language: JavaScript. Languages: JavaScript (100%). Homepage: https://npm.im/preact-shadow-root Topics: preact, preact-components, shadow-dom. Latest release: 1.0.2 (8y ago). Open PRs: 1, open issues: 3. Last activity: 6y ago. Community health: 28%. Top contributors: developit.

Β·@ofershap

Replace github.com with gitshow.dev