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 typings: Add children prop #169

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

reyronald
Copy link

In React 18, the React.Component type no longer includes the children prop by default, so it needs to be included explicitly.

See https://reactjs.org/blog/2022/03/08/react-18-upgrade-guide.html#updates-to-typescript-definitions

Without this change the Screener component cannot be used in React 18 without TypeScript compilation errors.

In React 18, the `React.Component` type no longer includes the `children` prop by default, so it needs to be included explicitly.

See https://reactjs.org/blog/2022/03/08/react-18-upgrade-guide.html#updates-to-typescript-definitions

Without this change the `Screener` component cannot be used in React 18 without TypeScript compilation errors.
@sauce-gabriel
Copy link
Collaborator

Hello @reyronald, thank you for reporting the issue along with the fix!
Will be looking into that and report back here as soon as we have an update on it.
Appreciate your collaboration on screener-storybook 👏

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.

None yet

2 participants