Too Long; Didn't Read
React library provides two built-in hooks to optimize the performance of our app: useMemo & useCallback. UseMemo and useCallback hooks can be confusing about when to use them both. A functional component is the same as the render function we used to have in class components. If a function is called inside the component, it will be re-evaluated, again and again, on every re-render. Only when one of the dependencies is changed, our function will be called again.