{"id":21521605,"url":"https://github.com/zzarcon/react-memo","last_synced_at":"2025-04-09T22:22:24.348Z","repository":{"id":57334479,"uuid":"171454235","full_name":"zzarcon/react-memo","owner":"zzarcon","description":"React.memo polyfill ","archived":false,"fork":false,"pushed_at":"2019-02-19T11:32:57.000Z","size":146,"stargazers_count":4,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T13:09:45.191Z","etag":null,"topics":["memo","memoization","polyfill","react","react-memo"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/zzarcon.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}},"created_at":"2019-02-19T10:32:04.000Z","updated_at":"2022-03-29T16:13:48.000Z","dependencies_parsed_at":"2022-09-05T08:01:45.111Z","dependency_job_id":null,"html_url":"https://github.com/zzarcon/react-memo","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/zzarcon%2Freact-memo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzarcon%2Freact-memo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzarcon%2Freact-memo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzarcon%2Freact-memo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zzarcon","download_url":"https://codeload.github.com/zzarcon/react-memo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248120503,"owners_count":21050959,"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":["memo","memoization","polyfill","react","react-memo"],"created_at":"2024-11-24T01:07:43.595Z","updated_at":"2025-04-09T22:22:24.328Z","avatar_url":"https://github.com/zzarcon.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-memo\n\u003e React.memo polyfill \n\n* What: https://reactjs.org/docs/react-api.html#reactmemo\n* Why: https://medium.com/@trekinbami/using-react-memo-and-memoization-1970eb1ed128\n* When: **React.memo** was introduced in [React@16.6.0](https://github.com/facebook/react/blob/master/CHANGELOG.md#1660-october-23-2018). You can use this polyfill until you upgrade your components\n\n### Install\n\n```\n$ yarn add react-memo-polyfill\n```\n\n### Usage\n\n```javascript\nimport memo from 'react-memo-polyfill'\n\nfunction MyComponent(props) { }\n\nmemo(MyComponent)\n```\n\nOptionally pass your compare function\n\n```javascript\nimport memo from 'react-memo-polyfill'\n\nfunction MyComponent(props) { }\nfunction areEqual(prevProps, nextProps) {\n  /*\n  return true if passing nextProps to render would return\n  the same result as passing prevProps to render,\n  otherwise return false\n  */\n}\nexport default memo(MyComponent, areEqual);\n```\n\n### Author\n\n[@zzarcon](https://twitter.com/zzarcon)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzzarcon%2Freact-memo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzzarcon%2Freact-memo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzzarcon%2Freact-memo/lists"}