How can you provide a custom comparison function to React.memo?
You can provide a custom comparison function as the second argument to React.memo. This function takes two parameters: the previous props and the next props. It should return true if the props are equal (meaning the component should not re-render), or false if the props are not equal (meaning the component should re-render). This allows for more complex comparison logic than the default shallow comparison.