{"id":24213693,"url":"https://github.com/dzek69/react-perfect","last_synced_at":"2026-04-11T06:44:27.882Z","repository":{"id":35018992,"uuid":"195773691","full_name":"dzek69/react-perfect","owner":"dzek69","description":"Simple render-saving library for your React components.","archived":false,"fork":false,"pushed_at":"2023-05-06T05:58:59.000Z","size":2667,"stargazers_count":0,"open_issues_count":24,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-24T06:39:03.794Z","etag":null,"topics":["javascript","performance","react","react-native","react-performance"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dzek69.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-07-08T08:52:51.000Z","updated_at":"2019-08-28T13:04:24.000Z","dependencies_parsed_at":"2023-01-15T12:15:19.444Z","dependency_job_id":null,"html_url":"https://github.com/dzek69/react-perfect","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dzek69%2Freact-perfect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dzek69%2Freact-perfect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dzek69%2Freact-perfect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dzek69%2Freact-perfect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dzek69","download_url":"https://codeload.github.com/dzek69/react-perfect/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241705910,"owners_count":20006397,"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":["javascript","performance","react","react-native","react-performance"],"created_at":"2025-01-14T03:17:44.596Z","updated_at":"2025-12-31T01:03:14.102Z","avatar_url":"https://github.com/dzek69.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-perfect\n\nSimple render-saving library for your React components.\n\n## Features\n\n- saves from writing simple-but-repeating shouldComponentUpdate\n- ideal for `react-redux` *\n- ideal for plugin-like components when you're not controlling the props you are receiving and you don't rely on some of\nthem when rendering\n- 1,5 kB of source code, should be few hundreds of bytes of minified \u0026 gzippped code\n\n* - `mapDispatchToProps` is returning new method instances (even if they don't rely on `ownProps`) for each redux state\nchange. If your state change doesn't affect data you're returning with `mapStateToProps` - your connected component\nwill be re-rendered even when using `PureComponent`\n\n## Usage\n\nProper docs are in @TODO state, sorry :)\n\ntl;dr:\n\n```jsx harmony\nclass MyComponent extends PureComponent {\n    render() {\n        return (\n            \u003c\u003e\n                \u003cdiv\u003e{this.props.title}\u003c/div\u003e\n                \u003cbutton onClick={this.props.update}\u003eupdate\u003c/button\u003e\n            \u003c/\u003e\n        );\n    }\n}\n\n// other props will still be passed, but their updates will be ignored\nexport default rerender.on(MyComponent, [\"title\"]); \n```\n\n## TODO\n\n- docs\n- unit tests\n\n## License:\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdzek69%2Freact-perfect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdzek69%2Freact-perfect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdzek69%2Freact-perfect/lists"}