title: react-router-v4 NavLink not rerendering components
body: <p>With react router 2, a click on a "Link" component will trigger a rerendering of components.</p>
  
  <p>I'm converting my project to react router 4, using "NavLink" instead of "Link". Everything works except this : A click on a "NavLink" is not rerendering my component (updating my todos list), it only changes the link.</p>
  
  <p>Is there anything I should add somewhere to make this work ?   It's working perfectly fine with react router 2 "Link".</p>
  
  <p>Here's sample code :</p>
  
  <p>App.js : </p>
  
  <pre><code>const App = ({ match: { params } }) =&gt; {
    return (
      &lt;div&gt;
        &lt;AddTodo /&gt;
        &lt;VisibleTodoList filter={params.filter || 'all'} /&gt;
        &lt;Footer /&gt;
      &lt;/div&gt;
    )
  }
  </code></pre>
  
  <p>Footer.js: </p>
  
  <pre><code>const Footer = () =&gt; (
    &lt;p&gt;
      Show:
      {" "}
      &lt;FilterLink filter="all"&gt;
        All
      &lt;/FilterLink&gt;
      {", "}
      &lt;FilterLink filter="active"&gt;
        Active
      &lt;/FilterLink&gt;
      {", "}
      &lt;FilterLink filter="completed"&gt;
        Completed
      &lt;/FilterLink&gt;
    &lt;/p&gt;
  );
  </code></pre>
  
  <p>Filterlink.js : </p>
  
  <pre><code>const FilterLink = ({ filter, children }) =&gt; {
      return (
          &lt;NavLink
              exact
              to={filter === "all" ? "/" : `/${filter}`}
              activeStyle={{ textDecoration: "none", color: "red" }}
          &gt;
              {children}
          &lt;/NavLink&gt;
      );
  };
  </code></pre>
  
  <p>VisibleTodoList.js : </p>
  
  <pre><code>const mapStateToProps = (state, ownProps) =&gt; {
    return {
      todos: getVisibleTodos(
          state.todos,
          ownProps.filter
      ),
    };
  };
  
  const mapDispatchToProps = (dispatch) =&gt; ({
      onTodoClick(id) {
          dispatch(toggleTodo(id))
      },
  });
  
  const VisibleTodoList = connect(
    mapStateToProps,
    mapDispatchToProps
  )(TodoList);
  </code></pre>