Felix Kling
Felix Kling
Yeah, react-docgen doesn't detect HOCs themselves, it would only be able to detect the component you pass *to* the HOC. But since you are not passing an actual component, it...
@neilff, yeah, that's basically the same issue as https://github.com/reactjs/react-docgen/issues/336 .
> Does the component class need to be exported for the parser to find it? In the default configuration yes. However, we have [multiple resolvers](https://github.com/reactjs/react-docgen/tree/67fcd097705eff40dac17c384353d64c3add8daa/src/resolver) that you can use to...
@deedubbu, you could also try https://github.com/Jmeyering/react-docgen-annotation-resolver .
> Are functions that return components (HOCs) not supported at all? They are not, at least not by default. The problem is that there are too many ways to define...
Maybe this should be raised with `react-styleguide`. We could certainly add a silent mode, but it would still be on `react-styleguide` to enable that mode. Or they should not apply...
@jjinnii Not sure whether you want to do more with this issue or whether implementing the old behavior suffices to close this.
> First off, I love this tool! Long time user, don't know how I'd get by without it. Thank you 🙂 I'm glad you found a workaround (even if ugly)....
You mean why it isn't listed in the README? Probably just an oversight from my side.
We do have https://github.com/reactjs/react-docgen/blob/master/src/handlers/displayNameHandler.js though.