{"id":25403106,"url":"https://github.com/mesmotronic/react-observable-div","last_synced_at":"2026-02-26T08:22:51.446Z","repository":{"id":277605695,"uuid":"932963071","full_name":"mesmotronic/react-observable-div","owner":"mesmotronic","description":"React component that provides a div element for embedding non-React things into, that tells you when it's mounted, unmounted or resized","archived":false,"fork":false,"pushed_at":"2025-02-18T11:22:27.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T20:04:16.750Z","etag":null,"topics":["div","mount","observable","react","resize","threejs","unmount"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mesmotronic.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-14T21:10:25.000Z","updated_at":"2025-02-18T11:22:31.000Z","dependencies_parsed_at":"2025-02-14T21:41:58.285Z","dependency_job_id":"9e5274ae-1539-4cfd-a2c9-1af0120c1a7a","html_url":"https://github.com/mesmotronic/react-observable-div","commit_stats":null,"previous_names":["mesmotronic/react-observable-div"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mesmotronic%2Freact-observable-div","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mesmotronic%2Freact-observable-div/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mesmotronic%2Freact-observable-div/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mesmotronic%2Freact-observable-div/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mesmotronic","download_url":"https://codeload.github.com/mesmotronic/react-observable-div/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248574894,"owners_count":21127085,"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":["div","mount","observable","react","resize","threejs","unmount"],"created_at":"2025-02-16T02:27:55.441Z","updated_at":"2026-02-26T08:22:46.429Z","avatar_url":"https://github.com/mesmotronic.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ObservableDiv for React\n\nThis library provides a React component that creates a `\u003cdiv\u003e` element for\nembedding non-React things into, that dispatches events when it's mounted,\nunmounted or resized.\n\n```ts\n\u003cObservableDiv\n  onMount={(domElement) =\u003e console.log(\"Mounted\", domElement)}\n  onUnmount={() =\u003e console.log(\"Unmounted\")}\n  onResize={({ width, height }) =\u003e\n    console.log(`Resized to ${width} x ${height}`)\n  }\n\u003e\n  {/* You can optionally put content here */}\n\u003c/ObservableDiv\u003e\n```\n\nThis component provides the ideal host for things like a [Three.js](https://threejs.org)\ncanvas, for example.\n\n## Strict mode\n\nPlease keep in mind that React's `\u003cStrictMode\u003e` may cause this component to\ndispatch the mount event twice in development. This is a know issue with\n`\u003cStrictMode\u003e` that affects all components and should be managed appropriately.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmesmotronic%2Freact-observable-div","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmesmotronic%2Freact-observable-div","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmesmotronic%2Freact-observable-div/lists"}