How to use React suspense and React.lazy

Sai gowtham on October 25, 2018

React suspense and React.lazy helps to lazy load the components so that users can only download the required data related to that page. Let's se... [Read Full]
markdown guide
 

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

 
 
 

Thanks Sai.

It's bleeding edge and would love to use it soon 😀

 
code of conduct - report abuse