{"id":21602028,"url":"https://github.com/ger86/react-portals-wormhole","last_synced_at":"2026-05-17T19:33:03.509Z","repository":{"id":39284364,"uuid":"228807747","full_name":"ger86/react-portals-wormhole","owner":"ger86","description":"In this project I want to show you how we can use React Portals to create impressive features like a wormhole.","archived":false,"fork":false,"pushed_at":"2023-01-26T10:44:29.000Z","size":4317,"stargazers_count":1,"open_issues_count":20,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-05-04T18:49:01.999Z","etag":null,"topics":["react","react-developers","react-hook","react-hooks","react-portal","reactjs","useref"],"latest_commit_sha":null,"homepage":"https://medium.com/@ger86/react-portals-una-introduccion-29c296324334","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ger86.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-18T09:44:21.000Z","updated_at":"2025-09-30T20:45:19.000Z","dependencies_parsed_at":"2023-02-05T02:45:40.711Z","dependency_job_id":null,"html_url":"https://github.com/ger86/react-portals-wormhole","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ger86/react-portals-wormhole","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ger86%2Freact-portals-wormhole","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ger86%2Freact-portals-wormhole/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ger86%2Freact-portals-wormhole/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ger86%2Freact-portals-wormhole/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ger86","download_url":"https://codeload.github.com/ger86/react-portals-wormhole/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ger86%2Freact-portals-wormhole/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33151744,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["react","react-developers","react-hook","react-hooks","react-portal","reactjs","useref"],"created_at":"2024-11-24T19:11:46.672Z","updated_at":"2026-05-17T19:33:03.485Z","avatar_url":"https://github.com/ger86.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🕳 React Portals: Creating a wormhole\n\n## Description\n\nIn this project I want to show you how we can use **React Portals** to create amazing features like a wormhole.\n\nWhat we will do is set a draggable spaceship that we could move around the screen and place into a wormhole to go to another part of the screen. This feature is achieven using **React Portals** and the hook `useRef` to maintain a reference to the two wormholes.\n\n## You will learn\n\nUse **React Portals** to render children into a DOM node that exists outside the DOM hierarchy of the parent component.\n\nUse `useRef` hook to keep references to DOM elements. \n\nUse the library (**React Draggable**)[https://www.npmjs.com/package/react-draggable] to move the spaceship around the screen.\n\n## Run the project\n\nUse `yarn start` to run the app in the development mode and open http://localhost:3000 to view it in the browser.\n\n## To read more\n\n- [React Portals documentation](https://reactjs.org/docs/portals.html)\n- [React Portals. Una introducción](https://medium.com/@ger86/react-portals-una-introduccion-29c296324334)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fger86%2Freact-portals-wormhole","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fger86%2Freact-portals-wormhole","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fger86%2Freact-portals-wormhole/lists"}