Tekkaman

导航

 

2017年6月12日

摘要: 【Link】 Link标签,用于实现React-Router功能的跳转。(意思是就不要使用a标签了) 1)to:string,指明要跳转的path。 2)Link的牛逼之处,就是可以拼完整url。 to:object,指明要跳转的path、query、state。 3)replace,When tr 阅读全文
posted @ 2017-06-12 11:33 Tekkaman 阅读(327) 评论(0) 推荐(0)
 
摘要: 【Route】 The Route component is perhaps the most important component in React Router to understand and learn to use well. Its most basic responsibility 阅读全文
posted @ 2017-06-12 10:56 Tekkaman 阅读(204) 评论(0) 推荐(0)
 
摘要: 【React-Router】 React-Router的本质是根据当前location,决定是否绘制component。要使用React-Router有几个要点: 1)根结点必须是Router,且Router只能有一个子结点。 2)Router内随意旋转Route,Route根据当前location 阅读全文
posted @ 2017-06-12 10:14 Tekkaman 阅读(188) 评论(0) 推荐(0)