react router 4和antd-mobile结合使用的问题
比如:
antd的底部菜单组件https://mobile.ant.design/com... ,它是把要渲染的内容放在组件标签内
//要渲染的内容
{this.renderContent('Life')}
{this.renderContent('Koubei')}
{this.renderContent('Friend')}
{this.renderContent('My')}
问题:
我要改成使用react router 4,点击下面对应的链接跳到对应的组件,应该怎么做呢?
<Link to="/life"></Link>
<Link to="/koubei"></Link>
<Link to="/friend"></Link>
<Link to="/my"></Link>