0
我使用的反应 - 路由器,我有以下途径反应路由器,路线不工作
<Route path = '/' component = {App}>
<Route path = '/login' component = {LoginContainer}>
</Route>
</Route>
从应用
现在,当我去“http://localhost”,那么它工作正常,但是当我浏览到http://localhost/login然后我得到一个错误,说无法找到登录。
您使用的是哪种历史? https://github.com/ReactTraining/react-router/blob/master/docs/guides/Histories.md –
[React-router url无法在手动刷新或写入时工作](http:// stackoverflow.com/questions/27928372/react-router-urls-dont-work-when-refreshing-or-writting-manually) –