We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
"react-router-dom": "4.3.1"
https://codesandbox.io/s/7kjzjow9r6
Pass a React component to the component property on a Route which was loaded with React.lazy.
component
Route
React.lazy
No propType warning.
propType
Console:
Warning: Failed prop type: Invalid prop component of type object supplied to Route, expected function.
object
function
The code sandbox link about displays the described prop type warning in the console window.
The text was updated successfully, but these errors were encountered:
See #6420.
Sorry, something went wrong.
No branches or pull requests
Version
"react-router-dom": "4.3.1"
Test Case
https://codesandbox.io/s/7kjzjow9r6
Steps to reproduce
Pass a React component to the
component
property on aRoute
which was loaded withReact.lazy
.Expected Behavior
No
propType
warning.Actual Behavior
Console:
Notes
The code sandbox link about displays the described prop type warning in the console window.
The text was updated successfully, but these errors were encountered: