React 路由小结

Route:组件,配置实际路由,当一个location匹配到path时就渲染相应的UI,包含几个属性: path(string):路由匹配的路径 exact(Boolean):true时,要求path与location.pathname完全匹配才渲染 strict(Boolean) :true的时候,有结尾斜线的路径只能匹配有斜线的location.pathname 渲染UI的方法: compon
相关文章
相关标签/搜索