{"id":13517719,"url":"https://github.com/mridgway/hoist-non-react-statics","last_synced_at":"2025-05-13T20:12:39.253Z","repository":{"id":32809480,"uuid":"36402138","full_name":"mridgway/hoist-non-react-statics","owner":"mridgway","description":"Copies non-react specific statics from a child component to a parent component","archived":false,"fork":false,"pushed_at":"2023-05-26T05:15:42.000Z","size":264,"stargazers_count":1803,"open_issues_count":28,"forks_count":95,"subscribers_count":16,"default_branch":"main","last_synced_at":"2025-04-18T08:17:40.197Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mridgway.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2015-05-27T23:28:29.000Z","updated_at":"2025-04-16T07:51:08.000Z","dependencies_parsed_at":"2023-01-14T22:30:51.908Z","dependency_job_id":"9bd0152f-9eb5-4522-bc5d-036adb2c1e55","html_url":"https://github.com/mridgway/hoist-non-react-statics","commit_stats":{"total_commits":109,"total_committers":34,"mean_commits":"3.2058823529411766","dds":0.6238532110091743,"last_synced_commit":"f3de655212b47f20b9c6a27e89a60d23f358925a"},"previous_names":[],"tags_count":32,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mridgway%2Fhoist-non-react-statics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mridgway%2Fhoist-non-react-statics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mridgway%2Fhoist-non-react-statics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mridgway%2Fhoist-non-react-statics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mridgway","download_url":"https://codeload.github.com/mridgway/hoist-non-react-statics/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251119618,"owners_count":21539196,"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":[],"created_at":"2024-08-01T05:01:36.633Z","updated_at":"2025-04-28T10:49:41.214Z","avatar_url":"https://github.com/mridgway.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","Uncategorized"],"sub_categories":["Uncategorized"],"readme":"# hoist-non-react-statics\n\n[![NPM version](https://badge.fury.io/js/hoist-non-react-statics.svg)](http://badge.fury.io/js/hoist-non-react-statics)\n[![Build Status](https://img.shields.io/travis/mridgway/hoist-non-react-statics.svg)](https://travis-ci.org/mridgway/hoist-non-react-statics)\n[![Coverage Status](https://img.shields.io/coveralls/mridgway/hoist-non-react-statics.svg)](https://coveralls.io/r/mridgway/hoist-non-react-statics?branch=master)\n[![Dependency Status](https://img.shields.io/david/mridgway/hoist-non-react-statics.svg)](https://david-dm.org/mridgway/hoist-non-react-statics)\n[![devDependency Status](https://img.shields.io/david/dev/mridgway/hoist-non-react-statics.svg)](https://david-dm.org/mridgway/hoist-non-react-statics#info=devDependencies)\n\nCopies non-react specific statics from a child component to a parent component.\nSimilar to `Object.assign`, but with React static keywords prevented from\nbeing overridden.\n\n```bash\n$ npm install --save hoist-non-react-statics\n```\n\n## Usage\n\n```js\nimport hoistNonReactStatics from 'hoist-non-react-statics';\n\nhoistNonReactStatics(targetComponent, sourceComponent);\n```\n\nIf you have specific statics that you don't want to be hoisted, you can also pass a third parameter to exclude them:\n\n```js\nhoistNonReactStatics(targetComponent, sourceComponent, { myStatic: true, myOtherStatic: true });\n```\n\n## What does this module do?\n\nSee this [explanation](https://facebook.github.io/react/docs/higher-order-components.html#static-methods-must-be-copied-over) from the React docs.\n\n## Compatible React Versions\n\nPlease use latest 3.x. Versions prior to 3.x will not support ForwardRefs.\n\n| hoist-non-react-statics Version | Compatible React Version |\n|--------------------------|-------------------------------|\n| 3.x | 0.13-16.x With ForwardRef Support |\n| 2.x | 0.13-16.x Without ForwardRef Support |\n| 1.x | 0.13-16.2 |\n\n## Browser Support\n\nThis package uses `Object.defineProperty` which has a broken implementation in IE8. In order to use this package in IE8, you will need a polyfill that fixes this method.\n\n## License\nThis software is free to use under the Yahoo Inc. BSD license.\nSee the [LICENSE file][] for license text and copyright information.\n\n[LICENSE file]: https://github.com/mridgway/hoist-non-react-statics/blob/master/LICENSE.md\n\nThird-party open source code used are listed in our [package.json file]( https://github.com/mridgway/hoist-non-react-statics/blob/master/package.json).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmridgway%2Fhoist-non-react-statics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmridgway%2Fhoist-non-react-statics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmridgway%2Fhoist-non-react-statics/lists"}