diff --git a/packages/react-router-dom/modules/NavLink.js b/packages/react-router-dom/modules/NavLink.js index dc3287075c..45dfc6c2ab 100644 --- a/packages/react-router-dom/modules/NavLink.js +++ b/packages/react-router-dom/modules/NavLink.js @@ -29,7 +29,7 @@ const NavLink = ({ return ( i).join(' ') : className} + className={isActive ? [ className, activeClassName ].filter(i => i).join(' ') : className} style={isActive ? { ...style, ...activeStyle } : style} {...rest} />