Reactjs React Redux路由器不断抛出错误_reactInternalInstance$7bszmuqv99s';空的

Reactjs React Redux路由器不断抛出错误_reactInternalInstance$7bszmuqv99s';空的,reactjs,redux,router,Reactjs,Redux,Router,我正在使用React和redux重写一个网站 index.js const store=createStore( 减速器, applyMiddleware(…中间件) ); store.dispatch(getAllMenu()); 渲染(( ), document.getElementById('root')) ) Routes.js *jshint版本:6*/ 从“React”导入React; 从“react Router”导入{Router,Route}; 从“./containers/

我正在使用React和redux重写一个网站

index.js

const store=createStore(
减速器,
applyMiddleware(…中间件)
);
store.dispatch(getAllMenu());
渲染((
),
document.getElementById('root'))
)
Routes.js

*jshint版本:6*/
从“React”导入React;
从“react Router”导入{Router,Route};
从“./containers/Menu”导入菜单;
从“./容器/子菜单/子菜单”导入子菜单;
常量路由=(道具)=>(
);
导出默认路径;
js(App.js)

从“React”导入React
从“./HeaderContainer”导入HeaderContainer
从“/MenuContainer”导入产品容器
从“../components/Header/Header”导入标题
常量菜单=()=>(
鲍勃·埃文斯菜单

) 导出默认菜单
Header.js

const头=()=>(
  • 菜单
  • 名册
) 导出默认标题;
我做错了什么?我不断地发现这个错误:

ncaught TypeError:无法读取null的属性“\uuu reactInternalInstance$1awl81loycp”


它指向哪里?它指向ReactDOMComponentTRee.js“函数getClosestInstanceFromNode(node){if(node[internalInstanceKey]){return node[internalInstanceKey];}”这个问题很小。我一直从“react router”导入{Link};而不是从“react router dom”导入{Link},这就解决了这个问题