-
-
Notifications
You must be signed in to change notification settings - Fork 221
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
Type 'null' is not assignable to type 'ReactInstance'. #214
Comments
Thanks for reporting. I'm currently traveling, but will look into this when I get back in a few days. If you are able to find a fix, I would be happy to review a PR. |
Hi, sorry for not getting back to you on this. Are you still having this issue? |
Reading this blog post, can you try doing |
Though I remind you that officially we do not support functional components right now, so I also don't know how |
I was able to get a working version using |
Going to close this for now. Let me know if the issue still exists and we can work to fix it. We are now supporting functional components with the new hook we have! |
getting this complaint from typescript following the hooks docs on the README
TS2769: No overload matches this call. Overload 1 of 2, '(props: Readonly<IReactToPrintProps>): ReactToPrint', gave the following error. Type 'null' is not assignable to type 'ReactInstance'. Overload 2 of 2, '(props: IReactToPrintProps, context?: any): ReactToPrint', gave the following error. Type 'null' is not assignable to type 'ReactInstance'.
The text was updated successfully, but these errors were encountered: