我正在使用react-stormpath做出反应。当我使用strormapath路由器代替反应路由器时,它给了我一个错误。
stormpath路由器我这样导入: -
import ReactStormpath, {Router,HomeRoute, LoginRoute, AuthenticatedRoute } from 'react-stormpath';
错误:对象作为React子对象无效(找到:带键的对象) {path,component,getChildRoutes,indexRoute})。如果你想渲染 子集合,使用数组或包装对象 使用React附加组件中的createFragment(object)。检查渲染
Router
的方法。
提前致谢