Hands-on practice for this lecture. Work through the exercises and quizzes to reinforce what you've learned.
Exercise 1 of 1
An expensive MarkdownPreview re-renders every time the parent updates — even when nothing it cares about changed. Wrap it with memo, stabilise the function with useCallback, and the object with useMemo.
Editor renders: 1
MarkdownPreview renders: 1