{"library":"react-portal","type":"library","category":null,"description":"react-portal simplifies the creation and management of React Portals, enabling developers to render children into a different part of the DOM tree, outside the parent component's hierarchy. This is particularly useful for modals, tooltips, lightboxes, and notifications that require specific positioning or need to break out of CSS `overflow: hidden` containers. The current stable version is 4.3.0. It leverages React's official Portal API (introduced in React 16) to provide a robust solution. A key differentiator is its dual component approach, offering both a low-level `<Portal />` for maximum control and a `<PortalWithState />` for common stateful interactions (e.g., close on ESC, close on outside click) without external dependencies. Notably, since v4.1.0, it includes a fallback mechanism to support React v15 while primarily targeting React v16 and newer, making it flexible for diverse project ecosystems. It focuses on clean markup, SSR compatibility, and minimalistic design. The project demonstrates an active maintenance cadence, with recent minor releases addressing bugs and ensuring compatibility.","language":"javascript","status":"active","version":"4.3.0","tags":["javascript","react","react-component","modal","lightbox","react-portal","portal","transportation"],"install":[{"cmd":"npm install react-portal","imports":["import { Portal } from 'react-portal';","import { PortalWithState } from 'react-portal';","import type { PortalProps, PortalWithStateProps } from 'react-portal';"]},{"cmd":"yarn add react-portal","imports":[]},{"cmd":"pnpm add react-portal","imports":[]}],"homepage":null,"github":"https://github.com/tajo/react-portal","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/react-portal","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/react-portal/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}