This seems to happen when
1. I take a component as a prop
2. I use that component as a JSX constructor in a hook

Minimal repro:
```jsx
export const Foo = ({ Component }) => {
  React.useEffect(() => {
    console.log(<Component />);
  }, []);
};
```

```
    "eslint-plugin-react-hooks": "^4.1.1",
```


---

Interestingly, this does NOT cause the error:
```jsx
export const Foo = ({ component }) => {
  React.useEffect(() => {
    const Component = component;
    console.log(<Component />);
  }, []);
};
```
return true;
            } else if (id.elements[0] === resolved.identifiers[0]) {
              if (name === 'useState') {
                const references = resolved.references;
                for (let i = 0; i < references.length; i++) {
                  stateVariables.add(references[i].identifier);
                }
              }
              
              return false;
            }
          }
        } else if (name === 'useTransition') {
          if (
            id.type === 'ArrayPattern' &&
            Array.isArray(resolved.identifiers)
          ) {
            
            if (id.elements[0] === resolved.identifiers[0]) {
              
              return true;
            }
          }
        }
        
        return false;
      }
      
      function isFunctionWithoutCapturedValues(resolved) {