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

fix: declare children prop explicitly for FCs #5258

Merged
merged 3 commits into from
Apr 15, 2022

Conversation

adidahiya
Copy link
Contributor

Fixes #5250

Changes proposed in this pull request:

Audit all uses of React.FunctionComponent and React.FC (replacing the former with the latter shorthand where possible), checking for usage of props.children. Where components do use children, we now declare that prop type explicitly for compatibility with @types/react@18.

@blueprint-bot
Copy link

dialog children optional

Previews: documentation | landing | table | demo

@blueprint-bot
Copy link

exclude from coverage

Previews: documentation | landing | table | demo

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.

Getting type errors after upgrading to @types/react v18.0.0.
2 participants