Skip to content

Add Void Function Components #600

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

Merged
merged 2 commits into from
Aug 30, 2020
Merged

Add Void Function Components #600

merged 2 commits into from
Aug 30, 2020

Conversation

xRovern
Copy link
Contributor

@xRovern xRovern commented Aug 19, 2020

As of @types/react PR #46643, you can use a new React.VoidFunctionComponent or React.VFC type if you wish to declare the accepted children explicitly.

@basarat basarat merged commit c4f2471 into basarat:master Aug 30, 2020
@basarat
Copy link
Owner

basarat commented Aug 30, 2020

Thanks! 🌹

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

Successfully merging this pull request may close these issues.

2 participants