{"id":16295763,"url":"https://github.com/hamlim/react-portal","last_synced_at":"2026-04-30T02:36:34.564Z","repository":{"id":74220929,"uuid":"100078991","full_name":"hamlim/react-portal","owner":"hamlim","description":"A simple portal component for React 16+","archived":false,"fork":false,"pushed_at":"2026-04-12T15:46:34.000Z","size":1016,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-04-12T17:30:51.212Z","etag":null,"topics":["portal","react","react16"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hamlim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-08-12T00:30:02.000Z","updated_at":"2026-04-12T15:46:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"701d8470-f389-41ff-90fa-16073906af14","html_url":"https://github.com/hamlim/react-portal","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hamlim/react-portal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamlim%2Freact-portal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamlim%2Freact-portal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamlim%2Freact-portal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamlim%2Freact-portal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hamlim","download_url":"https://codeload.github.com/hamlim/react-portal/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamlim%2Freact-portal/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32452741,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"online","status_checked_at":"2026-04-30T02:00:05.929Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["portal","react","react16"],"created_at":"2024-10-10T20:19:44.127Z","updated_at":"2026-04-30T02:36:34.560Z","avatar_url":"https://github.com/hamlim.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React-Warp 🌀\n\nA dead simple component to handle rendering portals.\n\nSimply pass in your children and provide an `isOpen` prop:\n\n```JSX\n\u003cdiv\u003e\n  \u003cPortal isOpen={this.state.showPortal}\u003e\n    \u003ch1\u003eThe 🍰 is a lie!\u003c/h1\u003e\n  \u003c/Portal\u003e\n\u003c/div\u003e\n```\n\n### Under the Hood:\n\nThis uses React 16's `createPortal`, it also has an additional hook to allow implementers to provider their own factory function for determining where to mount the portal.\n\n### API:\n\n* `\u003cPortal\u003e` props:\n  * `isOpen`: boolean determines if the portal is rendering the children or null\n  * `provideMountPoint`: function a function to return the portal mount point, defaults to creating a div and appending it to the bottom of the body\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhamlim%2Freact-portal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhamlim%2Freact-portal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhamlim%2Freact-portal/lists"}