What's the Use of the useMemo() Hook

PHOTO EMBED

Thu Sep 01 2022 13:06:22 GMT+0000 (Coordinated Universal Time)

Saved by @EMR4HKLMN #javascript

const result = useMemo(() => expensivesunction(input), [input]);
content_copyCOPY

https://www.freecodecamp.org/news/react-interview-questions-and-answers/