4IT580: Docs
4IT580 WebGitLab

7th Practical Class:
Memoization

Problem

Your app re-renders often with the same props and its re-rendering process is expensive, which makes the UI unresponsive.

Solutions

memoization - caching output values calculated with the same inputs.

Skip re-rendering a component when its props are unchanged

,

Without Memoization:

With Memoization:

Behavior inside

๐Ÿ‘‰ <StrictMode> in Docs

React Developer Tools

Don't try to memoize everything

Quacker Demo