{"id":16295770,"url":"https://github.com/hamlim/react-error-boundary","last_synced_at":"2025-03-20T04:31:09.303Z","repository":{"id":74220937,"uuid":"100081585","full_name":"hamlim/react-error-boundary","owner":"hamlim","description":"An unopinionated `\u003cErrorBoundary /\u003e` React component for React 16+.","archived":false,"fork":false,"pushed_at":"2018-04-04T01:09:04.000Z","size":156,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-09T05:32:40.676Z","etag":null,"topics":["error-boundaries","error-handling","react","render-props"],"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}},"created_at":"2017-08-12T01:34:43.000Z","updated_at":"2023-03-13T19:02:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"772bed45-55c2-4954-a3a4-c35b3306ab80","html_url":"https://github.com/hamlim/react-error-boundary","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/hamlim%2Freact-error-boundary","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamlim%2Freact-error-boundary/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamlim%2Freact-error-boundary/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamlim%2Freact-error-boundary/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hamlim","download_url":"https://codeload.github.com/hamlim/react-error-boundary/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244051821,"owners_count":20389973,"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":["error-boundaries","error-handling","react","render-props"],"created_at":"2024-10-10T20:19:45.353Z","updated_at":"2025-03-20T04:31:09.297Z","avatar_url":"https://github.com/hamlim.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React-Error-Boundary 🚯\n\nAn unopinionated `\u003cErrorBoundary /\u003e` React component for React 16+.\n\n```JSX\n\u003cdiv\u003e\n  \u003cErrorBoundary\n    onError={logError}\n  \u003e\n    {error =\u003e error\n      ? (\n        \u003ch1\u003eOh no an error occurred!\u003c/h1\u003e\n      )\n      : (\n        \u003cApplication /\u003e\n      )\n    }\n  \u003c/ErrorBoundary\u003e\n\u003c/div\u003e\n```\n\n## Props:\n\n* `onError` method called after `\u003cErrorBoundary /\u003e` catches an error.\n  * type `function`\n  * Called with one argument, the `error` object thrown\n* `children` function called inside render\n  * Called with the error object, will be null initially\n  * This is the only thing returned from render, so you have full control over rendering\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhamlim%2Freact-error-boundary","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhamlim%2Freact-error-boundary","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhamlim%2Freact-error-boundary/lists"}