When defining a React component with React.memo like
const MyComponent = React.memo((props) => <div>...</div>);
the React DevTools label the component "Anonymous" in the component tree. This can make debugging confusing if the application contains multiple memoized components.
How can I make my memoized component's name show up in the React DevTools?