給出能不能在這裏找到問題這可能是一個錯字,但我想我已經跟着文檔..陣營路由器不能正常工作時PARAMS
index.js:
ReactDOM.render(
<Router history={hashHistory}>
<Route path="/" component={App}></Route>
<Route path="/match:id" component={MatchFeedComponent}></Route>
<Route path="/user" component={UserPageComponent}></Route>
<Route path="/comments" component={CommentHolderComponent}></Route>
<Route path="/post-talk" component={AddTalkComponent}></Route>
<Route path="/add-match" component={AddMatchComponent}></Route>
</Router>,
document.getElementById('app')
);
在我
<Link to={{ pathname:"/match/", query: {id: this.id}}}>
我得到: [react-router] Location "/match/?id=-KXKIhpF8mdWDn9C5Tnd" did not match any routes
它工作正常,機智沒有任何參數,但現在找不到它。