1.Route
是路由的一个原材料,它是控制路径对应显示的组件。我们经常用的是exact、path以及component属性。
2.Switch
常常会用来包裹Route,它里面不能放其他元素,用来只显示一个路由。