Skip to content
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

Support for Void Function Components #62

Open
marcohamersma opened this issue Feb 28, 2022 · 1 comment
Open

Support for Void Function Components #62

marcohamersma opened this issue Feb 28, 2022 · 1 comment

Comments

@marcohamersma
Copy link

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

@milesj
Copy link
Owner

milesj commented Feb 28, 2022

Not opposed. PRs are welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants