{"id":13630501,"url":"https://github.com/the-road-to-learn-react/react-prevent-rerender-component","last_synced_at":"2025-07-20T20:37:01.641Z","repository":{"id":98579132,"uuid":"147833832","full_name":"the-road-to-learn-react/react-prevent-rerender-component","owner":"the-road-to-learn-react","description":"Showcasing when and how to prevent a rerender of a component in React","archived":false,"fork":false,"pushed_at":"2020-06-12T08:32:51.000Z","size":1011,"stargazers_count":14,"open_issues_count":3,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-31T10:25:51.211Z","etag":null,"topics":["purecomponent","react","reactjs","shouldcomponentupdate"],"latest_commit_sha":null,"homepage":"https://roadtoreact.com","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/the-road-to-learn-react.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"rwieruch","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2018-09-07T14:23:34.000Z","updated_at":"2023-02-10T07:38:32.000Z","dependencies_parsed_at":"2023-04-25T19:01:36.557Z","dependency_job_id":null,"html_url":"https://github.com/the-road-to-learn-react/react-prevent-rerender-component","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/the-road-to-learn-react/react-prevent-rerender-component","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/the-road-to-learn-react%2Freact-prevent-rerender-component","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/the-road-to-learn-react%2Freact-prevent-rerender-component/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/the-road-to-learn-react%2Freact-prevent-rerender-component/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/the-road-to-learn-react%2Freact-prevent-rerender-component/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/the-road-to-learn-react","download_url":"https://codeload.github.com/the-road-to-learn-react/react-prevent-rerender-component/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/the-road-to-learn-react%2Freact-prevent-rerender-component/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266195237,"owners_count":23891158,"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":["purecomponent","react","reactjs","shouldcomponentupdate"],"created_at":"2024-08-01T22:01:45.240Z","updated_at":"2025-07-20T20:37:01.606Z","avatar_url":"https://github.com/the-road-to-learn-react.png","language":"JavaScript","funding_links":["https://github.com/sponsors/rwieruch"],"categories":["JavaScript"],"sub_categories":[],"readme":"# react-prevent-rerender-component\n\n[![Build Status](https://travis-ci.org/the-road-to-learn-react/react-prevent-rerender-component.svg?branch=master)](https://travis-ci.org/the-road-to-learn-react/react-prevent-rerender-component) [![Slack](https://slack-the-road-to-learn-react.wieruch.com/badge.svg)](https://slack-the-road-to-learn-react.wieruch.com/) [![Greenkeeper badge](https://badges.greenkeeper.io/the-road-to-learn-react/react-prevent-rerender-component.svg)](https://greenkeeper.io/)\n\nAn application showcasing how to prevent a rerender of a React component with shouldComponentUpdate or PureComponent in React. It is used for performance optimizations in update lifecycles (e.g. render). [Read more about it](https://www.robinwieruch.de/react-prevent-rerender-component).\n\n## Features\n\n* performance optimization\n* React's shouldComponentUpdate\n* React's PureComponent\n* [recompose](https://github.com/acdlite/recompose)'s pure\n\n## Installation\n\n* `git clone git@github.com:the-road-to-learn-react/react-prevent-rerender-component.git`\n* cd react-prevent-rerender-component\n* npm install\n* npm start\n* visit `http://localhost:3000`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthe-road-to-learn-react%2Freact-prevent-rerender-component","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthe-road-to-learn-react%2Freact-prevent-rerender-component","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthe-road-to-learn-react%2Freact-prevent-rerender-component/lists"}