Memoization

Memoization is an optimization technique that stores computation results in cache, and retrieving that information from the cache the next time it's needed instead of computing it again. 1


  1. https://www.freecodecamp.org/news/memoization-in-javascript-and-react/