hehongwei44 / my-blog

我的博客
MIT License
137 stars 12 forks source link

react-router4相关文章集锦 #221

Open hehongwei44 opened 7 years ago

hehongwei44 commented 7 years ago

react-router@4.0 使用和源码解析

你可能注意到在为"/"写的路由中有一个exact关键字,这个关键字是将"/"做唯一匹配,否则"/"和"/xxx"都会匹配到path为"/"的路由,制定exact后,"/page1"就不会再匹配到"/"了

hehongwei44 commented 7 years ago

React Router 4 简易入门

hehongwei44 commented 7 years ago

React Router系列教程

hehongwei44 commented 7 years ago

初探 React Router 4.0

hehongwei44 commented 7 years ago

React Router v4中component和render的区别

hehongwei44 commented 7 years ago

https://github.com/ReactTraining/react-router/issues/4526 中作者对于component与render之间的区别:

I added some more detail that hopefully makes the distinction clearer. When you use component we actually create a new React element for you. When you use render, we don't. So your component tree is different depending on which one you use.

hehongwei44 commented 7 years ago

React-router 4.0版设计哲学(译)

hehongwei44 commented 6 years ago

react router4 中文文档:http://reacttraining.cn/web/guides/quick-start