Memoize Element
(See readme.mdx)Another way is to use Memo
The aim is to avoid re-rendering when clicking the count or app count increment button, and only re-render when the name or colour changes.
Do not use context all the time unless you have tried everything else.
Set the footer color:
Set the footer name:
Console video recording – testing improvement