We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
.type
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
When calling renderer.render() I get:
renderer.render()
Warning: Foo.type is deprecated. Use Foo directly to access the class
It seems to be here, and a few other places:
https://github.com/facebook/react/blob/master/src/test/ReactTestUtils.js#L418
I wonder if #4009 broke this entirely...
The text was updated successfully, but these errors were encountered:
.type on a React element still works. It does not work on React classes. It sounds like you're doing .render(Foo) instead of .render(<Foo />).
.render(Foo)
.render(<Foo />)
Sorry, something went wrong.
Spot on @spicyj, thanks for the pointer. The funny thing is it totally worked otherwise... It may be nice if that was an invariant.
Okay.
Better error for invalid element when shallow rendering
f4d7feb
Fixes facebook#4721, fixes facebook#4730.
Successfully merging a pull request may close this issue.
When calling
renderer.render()
I get:It seems to be here, and a few other places:
https://github.com/facebook/react/blob/master/src/test/ReactTestUtils.js#L418
I wonder if #4009 broke this entirely...
The text was updated successfully, but these errors were encountered: