Re-rendering the component multiple times with the same props and state can hit performance. React library has provided the options like PureComponent and React.memo() to skip re-renders of class and functional components.
This video explains in detail how to make use of the above mentioned features with examples.
Pre-requisites:
To understand this concept make sure you have a good understanding of the below concepts:
1. Class component
2. functional component
3. state
4. props
Click to view the complete playlist on React JS:
Watch video [35] React JS | Pure Component | React.memo() online without registration, duration 15 minute 36 second in high hd quality. This video was added by user InterviewPro 12 March 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 2 thousand once and liked it 6 people.