GitShow/developit/preact-portal
developit

preact-portal

:satellite: Render Preact components in (a) SPACE :milky_way: :stars:

by developit
dompreactpreact-componentspreact-portal
Star on GitHubForkWebsitenpm

JavaScript

183 stars23 forks3 contributorsQuiet · 5y agoSince 20161.1.3MIT

Meet the team

See all 3 on GitHub →
developit
developit15 contributions
billneff79
billneff793 contributions
apaleslimghost
apaleslimghost1 contribution

Languages

View on GitHub →
JavaScript100%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

2 of 6 standards met

Community profile →
42
✓README✓License○Contributing○Code of Conduct○Issue Template○PR Template

Recent PRs & issues

Quiet · 2 in progress · Last activity 5y ago
See all on GitHub →
st7art22
* fix error if parentNode not existOpenPR
st7art22 · 5y ago
Parikshit-Hooda
add CONTRIBUTING.mdOpenIssue

Hi! I believe this repository needs a CONTRIBUTING.md to help people like me! Also, I would like to take up this issue as part of hacktoberfest.

Parikshit-Hooda · 6y ago
shirotech
breaks on 10.0.0-alpha.*OpenIssue

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.

shirotech · 6y ago

Recent fixes

View closed PRs →
drwpow
Add ES Module exportMergedPR

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.

drwpow · 2y ago
gpoitch
Portal re-appends content in IEClosedIssue

Simple counter, portal-ing the display elsewhere: http://jsfiddle.net/50gz1mde/2/ Works as expected in Chrome, Safari, Firefox In IE Edge, 11, 10, 9, it seemingly randomly duplicates the the portal content:

gpoitch · 3y ago
kilgarenone
'ret is null' errorClosedIssue

Does anyone know how to fix this error from ? I'm using preact-portal like this:

kilgarenone · 4y ago
Structured data for AI agents

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.

·@ofershap

Replace github.com with gitshow.dev