create-react-app + dva => Failed prop type: Invalid prop `component` of type `object` supplied to `Route`, expected `function`

create-react-app + dva  => Failed prop type: Invalid prop `component` of type `object` supplied to `Route`, expected `function`

 

 如果这样报错,多半是复制的代码导致的 

create-react-app + dva  => Failed prop type: Invalid prop `component` of type `object` supplied to `Route`, expected `function`

 

 create-react-app + dva  => Failed prop type: Invalid prop `component` of type `object` supplied to `Route`, expected `function`

 

 在此记录一下。

create-react-app + dva => Failed prop type: Invalid prop `component` of type `object` supplied to `Route`, expected `function`

上一篇:android 点击无效验证


下一篇:JS---动画函数封装:设置任意的一个元素,移动到指定的目标位置