//@flow import * as React from "react"; import { Route, Link } from "react-router-dom"; // TODO mostly copy of PrimaryNavigationLink type Props = { to: string, label: string, activeOnlyWhenExact?: boolean }; class NavLink extends React.Component { static defaultProps = { activeOnlyWhenExact: true }; renderLink = (route: any) => { const { to, label } = this.props; return (
  • {label}
  • ); }; render() { const { to, activeOnlyWhenExact } = this.props; return ( ); } } export default NavLink;