/react-prevent-rerender-component

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

Primary LanguageJavaScript

react-prevent-rerender-component

Build Status Slack Greenkeeper badge

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.

Features

  • performance optimization
  • React's shouldComponentUpdate
  • React's PureComponent
  • recompose's pure

Installation

  • git clone git@github.com:the-road-to-learn-react/react-prevent-rerender-component.git
  • cd react-prevent-rerender-component
  • npm install
  • npm start
  • visit http://localhost:3000