How to decrease CPU time of various front-end operations with Memoization and how to avoid re-renders with newly available React.memo() and useMemo hook.
pure functions. • Keep a check on cache size. • Cache invalidation. • Current solution is for one argument. • Use lodash for more robust implementation.