{"id":25304864,"url":"https://github.com/leops/react-jumpgate","last_synced_at":"2025-10-28T09:30:45.607Z","repository":{"id":33114272,"uuid":"152308420","full_name":"leops/react-jumpgate","owner":"leops","description":"Renderer-Agnostic portals for React","archived":false,"fork":false,"pushed_at":"2023-01-04T02:00:21.000Z","size":228,"stargazers_count":4,"open_issues_count":14,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-06T07:35:13.947Z","etag":null,"topics":["placeholder","portal","react","react-native"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/leops.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}},"created_at":"2018-10-09T19:22:20.000Z","updated_at":"2022-04-06T13:54:48.000Z","dependencies_parsed_at":"2023-01-14T23:25:01.065Z","dependency_job_id":null,"html_url":"https://github.com/leops/react-jumpgate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leops%2Freact-jumpgate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leops%2Freact-jumpgate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leops%2Freact-jumpgate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leops%2Freact-jumpgate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leops","download_url":"https://codeload.github.com/leops/react-jumpgate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238624045,"owners_count":19503155,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["placeholder","portal","react","react-native"],"created_at":"2025-02-13T08:34:08.390Z","updated_at":"2025-10-28T09:30:40.238Z","avatar_url":"https://github.com/leops.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-jumpgate\n\nA generic implementation of portals for React, for platforms where ReactDOM is not available\n(eg. this could be used in a React Native application to add buttons to the toolbar from any component in the tree)\n\n```js\nimport createJumpgate from 'react-jumpgate';\n\n// A jumpgate is made of 3 components: an anchor, a consumer and a provider\nconst { Anchor, Consumer, Provider } = createJumpgate();\n\nconst App = () =\u003e (\n    \u003cdiv class=\"app\"\u003e\n        {/* Place the anchor near the root of your component tree */}\n        \u003cAnchor\u003e\n            \u003cdiv class=\"header\"\u003e\n                {/* The consumer acts as a placeholder for the component you want to teleport */}\n                \u003cConsumer /\u003e\n            \u003c/div\u003e\n            \u003cdiv class=\"content\"\u003e\n                {/* The provider will send its children through the jumpgate to the consumer */}\n                \u003cProvider\u003e\n                    \u003ch1\u003eTitle\u003c/h1\u003e\n                \u003c/Provider\u003e\n            \u003c/div\u003e\n        \u003c/Anchor\u003e\n    \u003c/div\u003e\n);\n\n/* \u003cApp /\u003e will render as\n    \u003cdiv class=\"app\"\u003e\n        \u003cdiv class=\"header\"\u003e\n            \u003ch1\u003eTitle\u003c/h1\u003e\n        \u003c/div\u003e\n        \u003cdiv class=\"content\" /\u003e\n    \u003c/div\u003e\n*/\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleops%2Freact-jumpgate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleops%2Freact-jumpgate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleops%2Freact-jumpgate/lists"}