babel-plugin-typescript-to-proptypes icon indicating copy to clipboard operation
babel-plugin-typescript-to-proptypes copied to clipboard

Support for Void Function Components

Open marcohamersma opened this issue 3 years ago • 1 comments

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)?

marcohamersma avatar Feb 28 '22 11:02 marcohamersma

Not opposed. PRs are welcome!

milesj avatar Feb 28 '22 19:02 milesj