babel-plugin-typescript-to-proptypes
babel-plugin-typescript-to-proptypes copied to clipboard
Support for Void Function Components
Hi there, I've been trying to implement this in our app, and so far so good, but I noticed that the library doesn't support void function components. It's mostly a semantic/type difference.
I saw the REACT_FC_NAMES const in the code, which made it seem as easy as adding VFC to make this functionality work.
I'd make a PR, but I was wondering if this all that needs to be done to add support for VFCs, or is there something more to consider (regarding children, for example)?
Not opposed. PRs are welcome!