Efficiently Derive Values in React using useMemo

Share this video with your friends

Send Tweet

Sometimes in a React component we need to derive some values by mapping or filtering props. This is a useful technique but can cause performance issues of you are processing a lot of data, or the component is rendered regularly. In this lesson you'll learn how to avoid this pitfall using the useMemo hook.