This content originally appeared on remy sharp's b:log and was authored by remy sharp's b:log
A useful focused post on React's memo function. Since moving away from classes (and forcing?) to use pure components with hooks, methods like shouldComponentUpdate
can be a bit of a black box.
This post reminds me that all components are re-rendered (in memory at least) unless memo is used, and some of the pros and cons and use cases (and when you don't want to use it).
Frankly, doing "modern web dev" is a bit of minefield of these things...
Source: dmitripavlutin.com
Originally published on Remy Sharp's b:log
This content originally appeared on remy sharp's b:log and was authored by remy sharp's b:log

remy sharp's b:log | Sciencx (2020-10-06T09:41:08+00:00) Use React.memo() wisely [link]. Retrieved from https://www.scien.cx/2020/10/06/use-react-memo-wisely-link/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.