React 路由小結

Route:組件,配置實際路由,當一個location匹配到path時就渲染相應的UI,包含幾個屬性: path(string):路由匹配的路徑 exact(Boolean):true時,要求path與location.pathname完全匹配才渲染 strict(Boolean) :true的時候,有結尾斜線的路徑只能匹配有斜線的location.pathname 渲染UI的方法: compon
相關文章
相關標籤/搜索