我有一个按钮,在onclick中我做了transitionTo,url正确更新,但它保持在同一页面上。通过transitionTo,它找到路线,确实是location.push,从不在任何地方导航?
var routes = (
<Route handler={App} path="/">
<DefaultRoute handler={LandingPage}/>
<Route name="createEvent" path="createEvent" handler={CreateEvent}/>
<NotFoundRoute handler={NotFound}/>
</Route>
);
React 13.3, React-Router 13.3
包含相关文件的要点位于:https://gist.github.com/ocorpening/d178e1907738e19287d0