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

Allow React 18 to a peerDependency and fix Provider Prop types #89

Merged
merged 3 commits into from
Dec 15, 2023

Conversation

Markionium
Copy link
Member

When trying to use @nova/react with React 18 the typings for the providers are not correct as children now has to be explicitly defined on the Props type.

This adds the children prop to all the providers but keeps us on React 17 for now as that is what most of the internal projects still use. The fix should however allow React 18 users to use @nova/react without any errors.

Copy link
Contributor

@kerrynf kerrynf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a good thing to do!

@kerrynf kerrynf merged commit d295e57 into microsoft:main Dec 15, 2023
2 checks passed
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