React-Router V4 - <match>和<route>之间的区别

时间:2017-03-02 23:21:12

标签: reactjs react-router router

有人能告诉我react-router v4中这些组件之间的主要区别吗?

1 个答案:

答案 0 :(得分:7)

<Match /> and <Route /> are the same. In the alpha version it's called Match and in the beta it's called Route. Please refer to the current documentation to see what is available:

https://reacttraining.com/react-router/api