2017-08-11 98 views
-5

安装react-routernpm --save react-router并且不能使用链接。 我该如何解决它?模块没有导出成员'链接'

Screenshot

+0

谢谢大家。对不起,对于这个问题,即时通讯新手在React中没有找到任何有关此信息。 – EnzyWeiss

+0

[反应路由器版本4没有渲染任何东西]的可能重复(https://stackoverflow.com/questions/45412714/react-router-version-4-not-rendering-anything) –

回答

1

使用Link如果您使用阵营for web,试试这个

import { Link } from 'react-router-dom' 
相关问题