React.memo can be used to control whether a React function component should update or not. It compares by props by default. Now I want to compare a prop with on
React.memo