We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have the following code that was working with [email protected] and [email protected]:
export function wrapComponent<T>(WrappedComponent: React.ComponentType<T>): React.ComponentClass<T> { return class extends React.Component<T> { displayName = `wrapped(${WrappedComponent.displayName})`; render() { ... } } return Container; }
After upgrading to [email protected], there's a linting error for react/display-name rule.
react/display-name
If I extract the class into an actual class and then return it, the linting error goes away, e.g.:
export function wrapComponent()... { class Wrap extends React.Component<T> { displayName = `wrapped(${WrappedComponent.displayName})`; ... } return Wrap; }
The text was updated successfully, but these errors were encountered:
We don't support eslint 8 yet; see #3055.
Sorry, something went wrong.
No branches or pull requests
I have the following code that was working with [email protected] and [email protected]:
After upgrading to [email protected], there's a linting error for
react/display-name
rule.If I extract the class into an actual class and then return it, the linting error goes away, e.g.:
The text was updated successfully, but these errors were encountered: