Added support to React.memo
Make sure to add whyDidYouRender
on the component after wrapping it with React.memo
and not before.
const ReactMemoTestComponent = React.memo(() => (
<div>hi!</div>
))
ReactMemoTestComponent.whyDidYouRender = true
ReactMemoTestComponent.dispalyName = 'ReactMemoTestComponent'