Test your knowledge with fill-in-the-blank questions. Complete sentences and statements to demonstrate your understanding.
Sample questions
To optimize performance in a React component, the hook ___ should be used to memoize complex calculations that do not need to be re-evaluated unless specific dependencies change.
When you need to preserve the same function instance across component re-renders to prevent unnecessary re-renders of child components, you should use the ___ hook.
To implement side effects in your component that require cleanup actions, the appropriate hook to use is ___.