react-prevent-rerender-component
react-prevent-rerender-component copied to clipboard
Showcasing when and how to prevent a rerender of a component in React
react-prevent-rerender-component
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 [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