httptoolkit/react-reverse-portal
React reparenting :atom_symbol: Build an element once, move it anywhere observed · 2026-08-28
Health v2 · maintenance only
66/100
- Activity 74
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2567
- days_rel: n/a
- days_push: 156
- n_releases_24m: 0
Adoption not part of the score
1048 stars · 41 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A tiny React library implementing reverse portals, allowing rendered React elements to be reparented anywhere in the tree without re-rendering. It preserves internal component and DOM state (e.g. a playing video or an initialized editor) while moving elements between locations.
Use cases
- move a react component elsewhere without losing its state
- reuse an expensive-to-render editor instance in multiple places
- persist a playing video element while relocating it in the dom
- render modals or breadcrumbs declaratively from anywhere in the tree
- pool expensive components and place/unplace them on demand
- detach a react node from the dom and reattach it later without rerendering
When to choose
- you need to reparent react-rendered DOM nodes while preserving state
- you render costly components once and want to reuse them in different tree locations
- you want a more flexible, declarative alternative to normal portals
When to avoid
- your components are cheap to render and can simply be re-rendered elsewhere
- you need SSR or non-DOM renderers, which reparenting does not support
- you are not using React
Facets
library · maturity stable
ui-components state-management frontend web-development browser react portal reparenting dom virtual-dom nodejs
7 sources
- readme: https://github.com/httptoolkit/react-reverse-portal · fetched 2026-08-28 · bdf9c466a4aa
- homepage: https://httptoolkit.com · fetched 2026-08-29 · 364157b79643
- site_page: https://httptoolkit.com/docs · fetched 2026-08-29 · 47a264d521ad
- registry_npm: https://registry.npmjs.org/react-reverse-portal · fetched 2026-08-29 · e36ffad55428
- site_page: https://httptoolkit.com/pricing · fetched 2026-08-29 · 13a0631a1858
- site_page: https://httptoolkit.com/all-integrations · fetched 2026-08-29 · 4c43ea947953
- site_page: https://httptoolkit.com/download/win-exe · fetched 2026-08-29 · f72ae7cf8997
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| httptoolkit/react-reverse-portal | main | 66 |
For agents
markdown · JSON · MCP: product_card(name="httptoolkit/react-reverse-portal")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem