:satellite: Render Preact components in (a) SPACE :milky_way: :stars:
by developitJavaScript
Last 12 weeks · 0 commits
2 of 6 standards met
This is due to how render doesn't append new dom anymore if it's being rendered already, also this.props.children is not always an array. I had a go at fixing it by doing some workaround like: But then I don't know Preact well enough to render directly into that remote, render will render inside the div only. Not the current behaviour.
Trying to use in an ESM project using (no webpack). depends on , and it’s not possible to use because there’s no ES Module export. This PR keeps the existing outputs as-is, but adds an additional ESM export to the bundle while still being fully backwards-compatible. To achieve this, I had to update Rollup & Babel to their latest versions. Though the Babel config was changed, I’m pretty confident the existing outputs and are unaffected; skimming them over they appear the exact same and have the exact same filesize as they did before.
Repository: developit/preact-portal. Description: :satellite: Render Preact components in (a) SPACE :milky_way: :stars: Stars: 183, Forks: 23. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Homepage: http://npm.im/preact-portal Topics: dom, preact, preact-components, preact-portal. Latest release: 1.1.3 (8y ago). Open PRs: 2, open issues: 6. Last activity: 5y ago. Community health: 42%. Top contributors: developit, billneff79, apaleslimghost.