7. useMemo()
-----------
if we use the useMemo() Hook, we can avoid component re-rendering if the inputs are the same and save the result in the cache.
if we use the useMemo() Hook, we can avoid component re-rendering if the inputs are the same and save the result in the cache