DEV Community

[Comment from a deleted post]
Collapse
 
baigey profile image
Proper Baig

Thanks, this is exciting stuff. However, I get the following warning when I try to implement the React Router example. It seems to only occur when using "component" in the Route component. It can be solved by using "render" instead, but do you have any insight as to why?

checkPropTypes.js:19 Warning: Failed prop type: Invalid prop component of type object supplied to Route, expected function.
in Route (created by App)
in App

Collapse
 
sait profile image
Sai gowtham • Edited

Yeah, I also got the same warning.

Check out React route module