# tajo/react-portal

🎯 React component for transportation of modals, lightboxes, loading bars... to document.body or else.

Repository: https://github.com/tajo/react-portal
Canonical: https://ross.abutalabs.com/products/react-portal
Language: JavaScript
License: MIT
License Family: permissive
Topics: react, portal, modal, loading-bar
Last push: 2025-01-29T04:03:42+00:00

## Health v2 (maintenance only)
Score: 25/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 4, release rhythm 8, longevity 100
- inputs: {"age_days": 4180, "days_push": 581, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2152, forks 169 (observed 2026-08-28T04:06:19.373452+00:00)

## What it is
A small React component library that transports children (modals, lightboxes, loading bars) into a portal appended to document.body or a custom DOM node. It wraps React's official portal API with SSR support and convenience features like close-on-ESC and close-on-outside-click.

## Use cases
- render modals at the top of the DOM tree in React
- create lightboxes that escape parent CSS positioning
- show loading bars or tooltips outside the component tree
- portal React content into a specific DOM element
- build overlays that close on ESC or outside click
- use portals with server-side rendering

## When to choose
- you need a minimal, dependency-free portal wrapper for React 15/16+
- you want built-in open/close state handling with ESC and outside-click closing
- you need SSR-safe portals without manual DOM checks

## When to avoid
- you're on modern React and only need ReactDOM.createPortal directly
- you need a full modal/dialog component with accessibility features built in
- the project is unmaintained for your React version and you need active support

## Facets
- artifact type: library
- maturity: maintenance
- function: ui-components, frontend-framework
- domain: frontend, web-development
- platform: browser
- tags: react, portal, modal, lightbox, ssr, react-component, nodejs, web-server

## Member repositories
- tajo/react-portal (main) score 25

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:19.373452+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:50:55.419435+00:00, confidence not recorded.
  - readme: https://github.com/tajo/react-portal (fetched 2026-08-28T04:06:19.373452+00:00, sha 11cc6618c6ec)
  - registry_npm: https://registry.npmjs.org/react-portal (fetched 2026-08-29T10:31:03.711511+00:00, sha 04bf71aa8484)
- Data as of 2026-08-30T08:39:29.467469+00:00.
