diff --git a/match/src/index.js b/match/src/index.js index 0a5d4699..e5ef67b4 100644 --- a/match/src/index.js +++ b/match/src/index.js @@ -24,12 +24,16 @@ export class Match extends Component { } } -export const Link = ({ activeClassName, path, ...props }) => ( - - { ({ matches }) => ( - - ) } - -); +export function Link({ class: c, className, activeClass, activeClassName, path, ...props }) { + const inactive = [c, className].filter(Boolean).join(' '); + const active = [c, className, activeClass, activeClassName].filter(Boolean).join(' '); + return ( + + { ({ matches }) => ( + + ) } + + ); +} export default Match;