<Route path="articles" component={Articles}>
<IndexRedirect to="/articles/wen" />
<Route path=":type" component={ ArticlesNav }/>
</Route>
ArticlesNav=React.createClass({
componentDidUpdate : function (){
return console.log(this.props.params.type)
}
})
从/articles/wen到/articles/2的时候componentDidUpdate触发2次