{"id":14384813,"url":"https://github.com/vb/perf-hoc","last_synced_at":"2025-08-23T18:31:02.536Z","repository":{"id":57322050,"uuid":"87636970","full_name":"vb/perf-hoc","owner":"vb","description":"(Deprecated) Visualize and detect unnecessary rendering and performance issues in React.","archived":false,"fork":false,"pushed_at":"2018-06-25T07:07:15.000Z","size":39,"stargazers_count":85,"open_issues_count":1,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-20T15:13:52.967Z","etag":null,"topics":["debugging","higher-order-component","performance","react"],"latest_commit_sha":null,"homepage":"https://perf-hoc-demo-ggdtpwmnny.now.sh/","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/vb.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":"2017-04-08T13:47:33.000Z","updated_at":"2023-07-08T10:44:45.000Z","dependencies_parsed_at":"2022-08-25T20:00:20.904Z","dependency_job_id":null,"html_url":"https://github.com/vb/perf-hoc","commit_stats":null,"previous_names":["viktorbergehall/perf-hoc"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vb/perf-hoc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vb%2Fperf-hoc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vb%2Fperf-hoc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vb%2Fperf-hoc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vb%2Fperf-hoc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vb","download_url":"https://codeload.github.com/vb/perf-hoc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vb%2Fperf-hoc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271762890,"owners_count":24816828,"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","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"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":["debugging","higher-order-component","performance","react"],"created_at":"2024-08-28T18:01:41.462Z","updated_at":"2025-08-23T18:31:02.284Z","avatar_url":"https://github.com/vb.png","language":"JavaScript","readme":"## Deprecated\nThis functionality is now included in the React Devtools under the option \"Highlight Updates\"\n\n# Performance HOC\nperf-hoc (previously lcHOC) is a HOC (higher order component) in React that visualize rendering and logs helpful information.\n\nEnhance each component you want to study with perfHOC and every time that component updates, a green flash wraps the component (much like paint flashing in devtools) and debugging information is logged to the console.\n\n#### Demo: https://perf-hoc-demo-ggdtpwmnny.now.sh/\n\n## Installation and usage\n```es6\n// Step 1: Install\nnpm install perf-hoc --save-dev;\n\n// Step 2: Import\nimport perfHOC from 'perf-hoc';\n\n// Step 3: Enhance\n// by decorating\n@perfHOC\nclass componentToStudy extends Component { ...\n\n// or by wrapping\nexport default perfHOC(componentToStudy);\n```\n\n## Customize\n```es6\n{\n  log: {\n    use: true,\n    expanded: false,\n    renderCount: true,\n    state: true,\n    props: true,\n    timings: true\n  },\n  flash: true\n}\n```\nYou can customize perfHOC by overriding the default settings object above. Example below.\n\n```es6\n// Decorating with customization\n@perfHOC({flash: false, log: {state: false}})\n\n// Wrapping with customization\nperfHOC(componentToStudy, {\n  flash: false,\n  log {\n    state: false\n  }\n});\n```\n## Contribute\n\nIf you have ideas on how to improve this component feel free to request a feature or submit a pull request!\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvb%2Fperf-hoc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvb%2Fperf-hoc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvb%2Fperf-hoc/lists"}