-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Bug: Render Function Wrapper Typescript Issue #965
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
Comments
I literally just ran into this myself. The proper fix should probably be: |
Thanks @kentcdodds 👍 . btw, I'm coming from your course and it's absolutely great! Are there any pending beginner friendly issues/tasks which I could work on? |
Awesome! I'm afraid that I don't maintain this project anymore much so I can't really recommend something to you for this project. But Hactoberfest is coming soon. Maybe you'll find something there :) |
@all-contributors add @akashshyamdev for bug |
I've put up a pull request to add @akashshyamdev! 🎉 |
Thanks @eps1lon. btw, Are there any pending beginner friendly issues/tasks which I could work on? |
🎉 This issue has been resolved in version 12.1.1 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
🎉 This issue has been resolved in version 13.0.0-alpha.7 🎉 The release is available on: Your semantic-release bot 📦🚀 |
@testing-library/react
version: ^11.1.0Relevant code or config:
What happened:
This is a typescript error. check the screenshot below for the error:

Problem description:
I believe the problem is coming from here:

Suggested solution:
I believe that this can be solved easily by a simple change. I've changed the wrapper type from
React.ComponentType
toJSX.Element
. Is this a bug or is this being done intentionally?The text was updated successfully, but these errors were encountered: