https://twitter.com/therealyashsriv/status/1219691914523545601

We shouldn't generate code that might cause browser or linting to complain.

https://github.com/facebook/react/blob/0cf22a56a18790ef34c71bef14f64695c0498619/packages/legacy-events/SyntheticEvent.js#L259

It's also just a confusing pattern at best.
'react/jsx-uses-react': ERROR,
    'react/no-is-mounted': OFF,
    
    'react/react-in-jsx-scope': ERROR,
    'react/self-closing-comp': ERROR,
    
    'react/jsx-wrap-multilines': [
      ERROR,
      {declaration: false, assignment: false},
    ],
    
    
    'no-for-of-loops/no-for-of-loops': ERROR,
    
    
    'react-internal/no-primitive-constructors': ERROR,
    'react-internal/no-to-warn-dev-within-to-throw': ERROR,
    'react-internal/invariant-args': ERROR,
    'react-internal/warning-args': ERROR,
    'react-internal/no-production-logging': ERROR,
    'react-internal/no-cross-fork-imports': ERROR,
    'react-internal/no-cross-fork-types': [
      ERROR,
      {
        old: [
          'firstEffect',
          'nextEffect',
          
          
        ],