react-router 组件式配置与对象式配置小区别

1. react-router 对象式配置 和 组件式配置

  

  • 组件式配置(Redirect) ----对应---- 对象式配置(onEnter钩子)
  • IndexRedirect -----对应-------indexRoute的onEnter钩子函数

 

posted @ 2016-12-16 23:36  miaowwwww  阅读(561)  评论(0编辑  收藏  举报