You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a functional component that is exported with React.memo
importReactfrom'react'import{string}from'prop-types'functionComponent({ world }){return<div>Hello {world}</div>}Component.propTypes={world: string,}exportdefaultReact.memo(Component)
This triggers the react/display-name error after the update from 7.11.1
[...]/Component.jsx
12:16 error Component definition is missing display name react/display-name
The exported components displayName is Memo(Component).
Without React.memo it recognizes the displayName.
exportdefaultComponent
The text was updated successfully, but these errors were encountered:
[email protected]
We have a functional component that is exported with
React.memo
This triggers the
react/display-name
error after the update from7.11.1
The exported components
displayName
isMemo(Component)
.Without
React.memo
it recognizes thedisplayName
.The text was updated successfully, but these errors were encountered: