New issue
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
Should stateless component be ignored for the multi-component lint rule? #50
Comments
I'm not a fan of this rule honestly and would like to just disable it (wasn't aware it was turned on really). In my experience the teams I'm working with, having this rule enabled, use to create more What do you think? |
Yes lets disable it |
I'm ok with disabling it. |
Discussed in callstack#50.
Submitted PR #51 |
* Dsiable react/no-multi-comp rule Discussed in #50. * Only disable for stateless components
Ask your Question
I am running into a scenario where I declare an HOC component, and then export it using React.forwardRef() in the same file. This is triggering an error that I have 2 components declared in 1 file.
This option can be disabled for essentially HOC components:
I'd like to propose adding that tweak. Otherwise, can it be explained how to resolve the rule firing when using forwardRef()?
The text was updated successfully, but these errors were encountered: