React-router 4 ,用了<NavLink>出问题

#1

我用做底部导航,路由路径分别是

{
name:‘首页’,
linkTo:’/’,
index:0
},
{
name:‘分类’,
linkTo:’/classify’,
index:1
},
{
name:‘农场旗舰店’,
linkTo:’/store’,
index:2
},
{
name:‘购物车’,
linkTo:’/shopcart’,
index:3
},
{
name:‘会员中心’,

            linkTo:'/membercenter',
            index:4
        },

但是激活状态是首页按钮始终是激活的。如何在点击其他按钮时候取消首页的激活状态?

#2

NavLink 官方文档

exact: bool
When true, the active class/style will only be applied if the location is matched exactly

<NavLink
+  exact
   to="/"
>Home</NavLink>