paint-brush
A Beginner's Guide to Performance Optimization Using React.memo()by@Kiran
875 reads
875 reads

A Beginner's Guide to Performance Optimization Using React.memo()

by Kiran2mDecember 10th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

React.memo is a higher-order component provided by React that will return a memoized version of the component that only changes if one of the props has changed. This helps to prevent unnecessary re-rendering of components and computations needed for component rendering. The method will memoize the component and does a shallow comparison of the rendered output then skips unnecessary rendering. This will prevent the recomputation during the render and the UI updates quickly. The parent component will import all these components and have a method to update the greetings count.

People Mentioned

Mention Thumbnail
featured image - A Beginner's Guide to Performance Optimization Using React.memo()
Kiran HackerNoon profile picture
Kiran

Kiran

@Kiran

Content Writer at Truemark Technology. Company Website Link - https://www.truemark.dev/

About @Kiran
LEARN MORE ABOUT @KIRAN'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Kiran HackerNoon profile picture
Kiran@Kiran
Content Writer at Truemark Technology. Company Website Link - https://www.truemark.dev/

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Freefoto
Rytirivina
Anonymousmedia