Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/the-road-to-learn-react/react-prevent-rerender-component

Showcasing when and how to prevent a rerender of a component in React
https://github.com/the-road-to-learn-react/react-prevent-rerender-component

purecomponent react reactjs shouldcomponentupdate

Last synced: 4 days ago
JSON representation

Showcasing when and how to prevent a rerender of a component in React

Awesome Lists containing this project

README

        

# react-prevent-rerender-component

[![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/)

An 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).

## Features

* performance optimization
* React's shouldComponentUpdate
* React's PureComponent
* [recompose](https://github.com/acdlite/recompose)'s pure

## Installation

* `git clone [email protected]:the-road-to-learn-react/react-prevent-rerender-component.git`
* cd react-prevent-rerender-component
* npm install
* npm start
* visit `http://localhost:3000`