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
Why not use propTypes directly? #1
Comments
Hi @bali182, I would've preferred this kind of API too ( But |
Ah that's understandable! Was worth asking though :) |
Definitely :) |
I think this would still be valuable for non-Flow users. One advantage is it would allow use of real requires/imports, which may be needed for Jest's |
Just stumbled upon this library, forgive me if I'm missing something obvious. But since the component to be tested has to be in scope already, why not just use it directly to get
propTypes
? Or was the data structure thatreact-docgen
provides easier to inspect?I mean:
And when using it I think it would be much more obvious to do something like this:
The text was updated successfully, but these errors were encountered: